unit

Game UI and game loop

Discover how to create a HUD with UI Toolkit to show health and add a simple game loop with clear end conditions.

2 Mins

What you will learn

You’ve set up a health system, but at the moment the player has no way to know what their character’s health actually is. In this unit, you’ll create a heads-up display (HUD) interface and configure it to show the player character’s health level.

By the end of this unit you’ll be able to do the following:

  • Create a basic display interface using UI Toolkit.
  • Change the size of a UI element based on the player character’s health.
  • Create a simple game loop defining end conditions for your game.

Additional XP earned by completing the unit

+60