Book

Beginning C++ Game Programming

Discover interesting examples and engaging projects to learn game development in C++ in an enjoyable way. This book will start with essential C++ topics and advance to classes, inheritance, and random scrolling game-worlds to show you how to create your own unique games from scratch.

Offered byPackt Logo

Difficulty Level

Intermediate

Completion Time

17h20m

Language

English

About Book

Who Is This Book For?

This book is perfect for you if any of the following describes you: You have no C++ programming knowledge whatsoever or need a beginner level refresher course, if you want to learn to build games or just use games as an engaging way to learn C++, if you have aspirations to publish a game one day, perhaps on Steam, or if you just want to have loads of fun and impress friends with your creations.

Book content

chapters 17h20m total length

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

Variables, Operators, and Decisions – Animating Sprites

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

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

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

Object-Oriented Programming, Classes, and SFML Views

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 HUD

Extending SFML Classes, Particle Systems and Shaders

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