Summary

In this chapter we covered a great deal about GUIs and menus and some of the script logic for making your own native GUI layout. We looked at creating splash and title screens for our game when it loads. We also created our Game Over and Game Win screens, complete with buttons that link the player back to retry the level, restart the whole game, or quit out of it completely.

Last, we looked at creating the HUD for our game, with a coin counter display and a three-heart system for the player’s health. We added our scripts and updated a few for the player. In the end, we have a menu flow system that works, and we have a HUD display that functions as you play the game.

In the next chapter we will add the final elements before getting into ...

Get Learning 2D Game Development with Unity®: A Hands-On Guide to Game Creation 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.