Summary
In this chapter, we learned about NavMeshes and pathfinding. We also did a little work with AI. It was perhaps among the simplest types of AI but chase behaviors are highly important to all types of games. To utilize all of this, we created an enemy tank. It chased the player and shot at them to reduce their score. To give the edge back to the player, we gave health to the enemy tanks. The player can now shoot the enemy tanks as well as the targets for points. But, we also created some spawn points. Every time a tank was destroyed a new one will be created. In terms of general game play, our Tank Battle game is pretty much complete.
In the next chapter, we will be creating a new game. In order to explore some of the special features of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access