O'Reilly logo

Mastering LibGDX Game Development by Patrick Hoey

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

BattleUI

As mentioned previously, BludBourne uses a simple interface for fighting monsters, inspired from the first person's perspective of Dragon Warrior. The following screenshot (Figure 9) represents the individually labeled components of the BattleUI class:

BattleUI

Figure 9

The BattleUI class is composed primarily of an AnimatedImage custom class and a Table with action TextButton widgets used by the player during the battle. The BattleUI window is configured so that the player's StatusUI is always on top, which gives the player access to their inventory so that they can equip items or use consumables during battle. The StatusUI also indicates the current ...

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