Heads-Up Display

We have decided to keep track of information during gameplay that has value beyond calculating points and the end of game. The player will want to see this information as it tends to provide motivation and adds to the fun of the game. So, we will create a Heads-Up Display for the player, and dynamically update the data in the game.

A Heads-Up Display (HUD) is a visual layer of information that is always present on the screen.

Here is a mock-up of what our Heads-Up Display will look like in our Cucumber Beetle game:

As you can see, there are six components to our HUD. Each of these are explained in detail:

  • Health: This will ...

Get Getting Started with Unity 2018 - Third 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.