Adding a Heads-Up Display
In the last chapter, we configured our non-player character, the Cucumber Beetle, and reviewed its 11 animations. We significantly reconfigured the non-player character's animation controller. We also planned and wrote scripts to control the non-player character's in-game behaviors, which included patrolling, cucumber consumption, fighting on the ground, and fighting on hind legs. In addition, we added cucumber patches, cucumbers, and cherries to our game world.
In this chapter, we will design, develop, and incorporate a Heads-Up Display (HUD) in our game. We will use a canvas to create text and graphics that provide visual indicators of points, health, and additional information to help the player maintain situational ...
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