O'Reilly logo

Mastering Unity 2D Game Development - Second Edition by Simon Jackson, Ashley Godbold

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Getting Ready to Fight

One of the hardest parts of any game development is engagement. This centers on how you can keep the players playing the game, how the game balances out to keep them challenged, and how to deliver enough varied content so they feel they are always experiencing something new.

This chapter will start out by laying the main foundation for the battle system of our game. We will create the Head-Up Display (HUD) as well as design the overall logic of the battle system.

The following topics will be covered in this chapter:

  • Creating a state manager to handle the logic behind a turn-based battle system
  • Working with Mecanim in the code
  • Exploring RPG UIs
  • Creating the game's HUD

Setting up our battle state manager

The most unique ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required