Book Image

Beginning C++ Game Programming

Book Image

Beginning C++ Game Programming

Overview of this book

This book is all about offering you a fun introduction to the world of game programming, C++, and the OpenGL-powered SFML using three fun, fully-playable games. These games are an addictive frantic two-button tapper, a multi-level zombie survival shooter, and a split-screen multiplayer puzzle-platformer. We will start with the very basics of programming, such as variables, loops, and conditions and you will become more skillful with each game as you move through the key C++ topics, such as OOP (Object-Orientated Programming), C++ pointers, and an introduction to the Standard Template Library. While building these games, you will also learn exciting game programming concepts like particle effects, directional sound (spatialization), OpenGL programmable Shaders, spawning thousands of objects, and more.
Table of Contents (24 chapters)
Beginning C++ Game Programming
Credits
About the Author
About the Reviewer
www.PacktPub.com
Dedication
Preface
17
Before you go...

Summary


Our Thomas Was Late game is not only fully playable, with directional sound effects and a simple but informative HUD, but we also have the capability to add new levels with ease. At this point, we could call it done.

It would be nice to add a bit more sparkle. In the following chapter, we will look into two gaming concepts. Firstly we will look at particle systems, which are how we can handle things such as explosions or other special effects. To achieve this, we will need to learn a bit more C++, look at a way we might radically rethink how we structure our game code.

After that, we will add the final flourish to the game when we learn about OpenGL and the programmable graphics pipeline. We will then be in a position to dip our toes into the GLSL language, which allows us to write code that executes directly on the GPU, to create some special effects.