Part 4: The Gameplay
In this last part of the book, you will learn how to piece together the features we have developed so far to create the gameplay of our RTS game. You will start by learning how to balance the units and enemies so that they provide a fair and challenging battle for the player, using unit tests to simulate different battle scenarios. You will also learn how to generate resources automatically and implement the resource-gathering action for the units. Then, you will see how to add buildings on the map that can upgrade the resource generation and create a defense tower to defend the settlement, with ranged attacks.
After implementing everything that is needed to generate and gather resources, including upgrades, you will learn how to create objectives for the player and how to track progress in a level. Finally, you will see how to export your game to desktop platforms manually and automatically with a script, as well as how to expand the game, adding new content...