Part 3: The Battlefield
In this third part of the book, you will learn how to configure different types of enemies and spawn them on the map, as well as how to create a basic AI to patrol and chase the player’s units. You will also learn how to implement a battle between the units and enemies, using collision and damage calculation based on the configuration of each character, and creating their life cycle with animations and feedback.
After having finished the battle implementation, you will see how we can configure groups of enemies and add them to the map using a spawn point. Finally, you will learn how to cover the map with fog and unveil the areas that are explored by the player, using units.
This part includes the following chapters:
- Chapter 9, Adding Enemies
- Chapter 10, Creating an AI to Attack the Player
- Chapter 11, Adding Enemies to the Map