In this chapter, we will design the backend of a strategy game where the player can create units (workers, soldiers), build buildings, and fight the enemy. Whenever you design a game, whether it's a strategy game or a first-person shooter, there are several fundamental components that are the same, such as game physics, which are used to make the game feel more real and immersive to the player.
There are components in game design that are repeated in almost all games, such as collision detection mechanisms, the audio system, graphics rendering, and so on. When designing a game, we can either distinguish between the engine and the game or develop a strongly tied application representing both the engine and the game as a single outcome. Designing the game engine separately allows it to be extended for further releases and even used for other games...