Book

Beginning C++ Game Programming

This book is a fun introduction to the world of game programming, C++, and the OpenGL-powered SFML using five fun, fully playable games of increasing difficulty and advancing features

Offered byPackt Logo

Difficulty Level

Intermediate

Completion Time

24h52m

Language

English

About Book

Who Is This Book For?

This book is perfect for you if you have no C++ programming knowledge, you need a beginner-level refresher course, or you want to learn how to build games or just use games as an engaging way to learn C++. Whether you aspire to publish a game (perhaps on Steam) or just want to impress friends with your creations, you’ll find this book useful.

Book content

chapters 24h52m total length

C++, SFML, Visual Studio, and Starting the First Game

Variables, Operators, and Decisions – Animating Sprites

C++ Strings and SFML Time – Player Input and HUD

Loops, Arrays, Switches, Enumerations, and Functions – Implementing Game Mechanics

Collisions, Sound, and End Conditions – Making the Game Playable

Object-Oriented Programming – Starting the Pong Game

Dynamic Collision Detection and Physics – Finishing the Pong Game

SFML Views – Starting the Zombie Shooter Game

C++ References, Sprite Sheets, and Vertex Arrays

Pointers, the Standard Template Library, and Texture Management

Collision Detection, Pickups, and Bullets

Layering Views and Implementing the HUD

Sound Effects, File I/O, and Finishing the Game

Abstraction and Code Management – Making Better Use of OOP

Advanced OOP – Inheritance and Polymorphism

Building Playable Levels and Collision Detection

Sound Spatialization and the HUD

Particle Systems and Shaders

Game Programming Design Patterns – Starting the Space Invaders ++ Game

Game Objects and Components

File I/O and the Game Object Factory

Using Game Objects and Building a Game

Before You Go...

Related Resources

Access Ready-to-Use Books for Free!

Get instant access to a library of pre-built books—free trial, no credit card required. Start training your team in minutes!

No credit card required