Summary
In this chapter, we started on the path of creating a challenging but balanced game experience by enhancing the capabilities of our AI-driven enemies. We gave our enemies zombie-like behavior by allowing them to wander aimlessly around the level until noticing the player by sight or sound. We also gave them the ability to charge forward when they notice the player and launch a melee attack, lowering the player's health. Then, we gave the player the chance to fight back by attacking the enemy, eventually destroying them once the enemy's health is depleted. Finally, we gave new flexibility to our game by setting up a system to create new enemies as the game is being played.
At this point, the core content of our game is nearly complete. You should feel proud of the significant progress you have made! You can take some time to tweak the many variables you have created to customize the gameplay to your liking, or you can continue reading if you are ready to move on...