O'Reilly logo

Haxe Game Development Essentials by Jeremy McCurdy

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 3. Dealing with Menus and Screen Flow

In this chapter, we'll add the UI and screen flow for our game. We'll start by building the splash screen that will appear when the game first loads, then we'll revisit the level end screen and make it look cooler. Finally, we'll update our in-game heads-up display (HUD).

Throughout the chapter, we'll also use some cool HaxeFlixel features that will easily make our UI feel more exciting.

Here's a rundown of the sections in this chapter:

  • Project updates
  • Building the splash screen
  • Updating the level end screen
  • Adding the new game HUD
  • Adding the HUD to the game
  • Project updates

To start, we'll update our project by adding the new art assets and changing our default FlxState class.

Adding new assets

Copy all of the ...

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