Chapter 6. Upgrading the AI Enemies
In this chapter, we will be adding more functionality to our AI enemies to introduce the potential for the player to fail, and for greater gameplay diversity. At this point, we are going to begin settling on the kind of challenge we want to offer the player. We are going to create zombie-like enemies that will relentlessly pursue the player, creating an action-focused experience, where the player must try to survive against hoards of enemies. We will start by giving greater capability to the AI, including damage dealing and wandering patterns, in order to increase the difficulty of surviving. We will then turn our attention to the player, giving them the ability to fight back against these dangerous enemies. Finally, we will complete our difficulty balancing by creating a system to spawn new enemies in the game world over time. In the process, we will cover the following topics:
- Introducing an enemy melee attack that will damage the player&apos...