December 2012
Intermediate to advanced
357 pages
9h 35m
English
CHAPTER 8
![]()
Adding More Game Elements
In the previous chapter, we developed a framework for unit movement that combined pathfinding and steering. We used this framework to implement move and deploy orders for the vehicles. Finally, we made our unit movement look smoother by interpolating the movement steps during intermediate drawing cycles.
We now have a game where the player can select units and command them to move around the map.
In this chapter, we will build upon this code by adding some more game elements. We will start by implementing an economy where the player can earn money by harvesting and then spend the money on creating buildings ...
Read now
Unlock full access