E-book details

Beginning C++ Game Programming. Learn C++ from scratch by building fun games - Third Edition

Beginning C++ Game Programming. Learn C++ from scratch by building fun games - Third Edition

John Horton

Ebook
Always dreamed of creating your own games? With the third edition of Beginning C++ Game Programming, you can turn that dream into reality! This beginner-friendly guide is updated and improved to include the latest features of VS 2022, SFML, and modern C++20 programming techniques. You'll get a fun introduction to game programming by building four fully playable games of increasing complexity. You'll build clones of popular games such as Timberman, Pong, a Zombie survival shooter, and an endless runner.

The book starts by covering the basics of programming. You'll study key C++ topics, such as object-oriented programming (OOP) and C++ pointers and get acquainted with the Standard Template Library (STL). The book helps you learn about collision detection techniques and game physics by building a Pong game. As you build games, you'll also learn exciting game programming concepts such as vertex arrays, directional sound (spatialization), OpenGL programmable shaders, spawning objects, and much more. You’ll dive deep into game mechanics and implement input handling, levelling up a character, and simple enemy AI. Finally, you'll explore game design patterns to enhance your C++ game programming skills.

By the end of the book, you'll have gained the knowledge you need to build your own games with exciting features from scratch.
  • 1. Welcome to Beginning C++ Game Programming Third Edition!
  • 2. Variables, Operators & Decisions: Animating Sprites
  • 3. C++ Strings, SFML Time : Player Input & HUD
  • 4. Loops, Arrays, Switch, Enumerations & Functions: Implementing Game Mechanics
  • 5. Collisions, Sound & End Conditions: Making The Game Playable
  • 6. Object Oriented Programming: Starting the Pong game
  • 7. Dynamic collision detection and physics: Finishing the Pong Game
  • 8. SFML Views: Starting the Zombie Shooter Game
  • 9. C++ References, Sprite sheets & Vertex Arrays
  • 10. Pointers, Standard Template Library & Texture Management
  • 11. Collision Detection, Pickups & Bullets
  • 12. Layering Views & Implementing The HUD
  • 13. Sound Effects, File I/O & Finishing the Game
  • 14. Abstraction & Code Management: Making Better Use of OOP
  • 15. Using Azure with PowerApps Advanced OOP: Inheritance & Polymorphism
  • 16. Building Playable Levels & Collision Detection
  • 17. Sound Spatialization & the Player's HUD
  • 18. Extending SFML classes, Particle Systems & Shaders
  • Title: Beginning C++ Game Programming. Learn C++ from scratch by building fun games - Third Edition
  • Author: John Horton
  • Original title: Beginning C++ Game Programming. Learn C++ from scratch by building fun games - Third Edition
  • ISBN: 9781835088258, 9781835088258
  • Date of issue: 2024-05-31
  • Format: Ebook
  • Item ID: e_3x89
  • Publisher: Packt Publishing