November 11, 2019 | ISBN: 978-1838648572 | English | 746 pages | True (PDF, EPUB, MOBI) + Code | 87 MB
Explore modern game development and programming techniques to build five complete, games using C++ and its popular libraries
Learn modern C++ programming as you build exciting 2D games
Explore a variety of game development techniques to build desktop games that gradually increase in complexity
Discover tips to expand your finished games by thinking critically, technically, and creatively
Beginning C++20 Game Programming is a fun introduction to the world of game programming, C++, and the OpenGL-powered SFML. You'll get to grips with advanced features by building five fun, fully-playable games of increasing complexity - an addictive frantic two-button tapper, a pong game, a multi-level zombie survival shooter, a split-screen multiplayer puzzle-platformer, and a space invaders shooter game.
This improved and extended second edition starts by covering the basics of programming, such as variables, loops, and conditions, and helps you develop your skills with each game. You'll study key C++ topics, such as OOP (object-orientated programming) and C++ pointers, and get acquainted with the Standard Template Library. While building games, you'll also learn exciting game programming concepts such as particle effects, directional sound (spatialization), OpenGL programmable shaders, spawning objects, and much more.
By the end of this book, you'll have gained all the knowledge you need to get started with your game development and programming career with C++ and its libraries.
What you will learn
Grasp the basics of C++, including variables and loops
Understand how to animate game objects, respond to collisions, keep score, and add sound effects
Use classes, inheritance, and references to spawn and control thousands of enemies and shoot rapid-fire machine guns
Design games where players can move around in random scrolling game worlds
Use pointers, references, and the Standard Template Library to add advanced features to your games
Reuse code in different games and build a design mode
Who This Book Is 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.