Summary

In this chapter, we started off 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 noticed 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 to the final systems.

In the next chapter, we will add the final Components necessary for a full game experience. We will end the game when the player runs out of health, create a round-based advancement system, and create a save system so that the player can return to a previously saved game state.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset