Chapter 10: Upgrading the AI Enemies
In this chapter, we will add more functionality to our AI enemies to introduce the potential for a player to fail and to create 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 hordes of enemies. We will start by giving more capability to the AI, including the ability to deal damage and use wandering patterns to increase the difficulty of player survival. We will then turn our attention to the player, giving them the ability to fight back against these dangerous enemies. Finally, we will complete the balance of our increased difficulty by creating a system to gradually spawn new enemies in the game world.
In this process, we will cover the following objectives:
- Introducing an enemy melee attack...