Fundamental C++ techniques and concepts used in game development, ideal for beginners and intermediate learners.

How to Design a Scalable Entity Class for Games

When it comes to designing entities in game development, we inevitably need to discuss the ECS (Entity-Component-System) architecture. Although the term has become somewhat of a buzzword, I’d still like to briefly revisit it here. What Is ECS? ECS stands for Entity, Component, and System. It’s a highly efficient data-oriented…

Continue ReadingHow to Design a Scalable Entity Class for Games

From Small Projects to Large-Scale Games: Organizing C++ Game Code Modules

I. Introduction I remember for a long time when I first started learning to program, a project would typically have just one main.cpp file. Everything was crammed into it: global variables, window creation, resource loading, logic processing, and rendering output. While such code could run, as the project's scale grew…

Continue ReadingFrom Small Projects to Large-Scale Games: Organizing C++ Game Code Modules

C++ Programming Paradigms and Mindsets in Game Development

I. Foreword Whether to use procedural or object-oriented programming is indeed a problem, especially for beginners. Procedural code is straightforward and simple in its flow. It also doesn't require a lot of prior design; you can just do things as you think of them. However, as a project expands rapidly,…

Continue ReadingC++ Programming Paradigms and Mindsets in Game Development