Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Practical C++ Game Programming with Data Structures and Algorithms
  • Table Of Contents Toc
Practical C++ Game Programming with Data Structures and Algorithms

Practical C++ Game Programming with Data Structures and Algorithms

By : Zhenyu George Li, Charles Shih-I Yeh
3 (1)
close
close
Practical C++ Game Programming with Data Structures and Algorithms

Practical C++ Game Programming with Data Structures and Algorithms

3 (1)
By: Zhenyu George Li, Charles Shih-I Yeh

Overview of this book

Creating responsive, intelligent games takes more than just following engine tutorials. It requires solving real development challenges with practical, efficient code. This book bridges theory and practice with proven algorithms and techniques grounded in real-world production needs, emphasizing clean, portable C++ implementations. Starting with raylib and the custom Knight engine layer, you’ll be introduced to a simple object-oriented scene and game object system. From there, you'll build responsive gameplay systems using essential data structures and algorithms, progressing through 2D rendering, collision detection, effects, and camera control before advancing to 3D graphics environments built using shaders, lighting, quad-tree terrain, and dynamic camera setups. You’ll animate characters using skeletal rigs, interpolation, and inverse kinematics for fluid movement and then develop game AI using FSMs, behavior trees, A* pathfinding, and steering behaviors. The book also covers neural networks, exploring their underlying theories, training processes, and tools. Throughout, the code is written in legacy-compatible C++ to ensure broad support across platforms and compilers. By the end, you’ll have gained the skills to build game systems that not only work but also scale, perform, and adapt like professional-grade code.
Table of Contents (18 chapters)
close
close
Lock Free Chapter
1
Part 1: Data Structure and Algorithm Fundamentals
5
Part 2: Graphics Algorithms in Practice
10
Part 3: Breathing Life into Your Games
14
Part 4: Reflecting and Moving Forward
16
Other Books You May Enjoy

Setting up your development environment

By now, you are aware that we are using C++ and Knight to demonstrate algorithms in this book. In the final section of this chapter, we will provide guidelines for setting up your work environment. This will enable you to explore the sample code and experiment with your own implementations.

Now it’s time to get hands-on by following these steps to set up your working environment.

Install Visual Studio 2022

Microsoft Visual Studio (MSVS) is an Integrated Development Environment (IDE) that can be used to create, edit, debug, and compile your C++ code. You should have a Microsoft account before installation.

To install MSVS, you can visit the official website (http://visualstudio.microsoft.com/vs/) and download the Visual Studio 2022 (VS2022) Community version installation package. This is what the website should look like:

Figure 1.2 – Downloading VS2022 from Microsoft

Figure 1.2 – Downloading VS2022 from Microsoft

When installing VS2022, make sure...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Practical C++ Game Programming with Data Structures and Algorithms
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon