C++ Game Development By Example: Learn to Build Games with C++ & SFML
Master C++ Game Development: Build Games with SFML, OpenGL, Vulkan, and Advanced Graphics
C++ remains the industry standard for crafting professional game libraries and toolchains, and "C++ Game Development By Example" is your definitive guide to mastering it. This book immerses you in game creation, starting with foundational concepts in math, programming, and computer graphics to build a simple 2D side-scrolling action game.
You'll establish a robust understanding of core game mechanics by:
- Creating essential game loops.
- Rendering dynamic 2D game scenes using SFML.
- Crafting 2D sprite animations and developing a game character class.
- Implementing collision detection.
- Adding sound effects and background music to enhance your games.
As you progress, the book elevates your skills to 3D physics puzzle game development using modern OpenGL and the Bullet physics engine. You'll demystify the graphics pipeline, learning to create and render 3D objects with vertex and index buffers, and implement custom visuals using vertex and fragment shaders. You'll also learn how to write basic vertex and fragment shaders.
Finally, you'll delve into high-performance graphics with the Vulkan library. The book guides you through creating essential Vulkan components like swap chains, image views, render passes, and frame buffers, empowering you to build cutting-edge visuals. You'll also learn to integrate Vulkan into Visual Studio and convert shaders to the SPIR-V binary format.
By the end of this practical journey, you'll have successfully completed three compelling projects created with SFML, OpenGL, and the Vulkan API. This hands-on experience will significantly advance your game and graphics programming skills.
If you're a developer keen to learn game development with C++ or seeking to update your knowledge with modern graphics APIs, this book is for you. Some prior knowledge of C++ programming is assumed.