Chapter 7. Tracking Game States and Applying Finishing Touches
In this chapter, we will be taking the final steps to evolve our game into a complete and fun experience that challenges the player. First, we will introduce player death, which is activated when the player's health is fully drained. Then, we will introduce a round system that will elevate the challenge for the player by requiring increasingly numerous enemies to be defeated as they progress through the rounds. Finally, we will introduce a saving and loading system so that the player can leave the game and later come back to the round they were last playing on. With these things accomplished, we will have an arcade-style first-person shooter that a player can continually return to for an increasingly difficult challenge. In the process, we will cover the following topics:
- Branching menus based on player conditions
- Creating scaling difficulty with gameplay modifiers
- Supporting the game state being saved and reloaded...