Chapter 10. The Battle Begins

Creating a battle system is such a big endeavor, so we split ours into two chapters. In the previous chapter, we set up the general logic of the turn-based system and designed the HUD to allow our player to select an attack, but our player cannot actually attack any of the enemies yet and they do not attack her. Let's allow our player and our enemies to fight each other.

The following topics will be covered in this chapter:

  • What it means to battle
  • Planning for longevity
  • Enhancing the enemy AI
  • Particle systems in 2D

Designing an interesting battle system

Before we begin fleshing out our battle system, it is important to consider various elements that we may want to include in our game. Designing an interesting and unique ...

Get Mastering Unity 2D Game Development - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.