10. Creating the Menus and Interface Elements

We have come a long way toward having a fully playable game. Our game has a main character with animations and mechanics. We have a fully designed level complete with GameObjects, physics, and even coin boxes that spit out collectible coins. What would really help to tie everything together is wrapping the game with a title screen, adding a few menu options, and adding an interface to tell us the player’s health and other important information.

In this chapter we will look at adding these menus and interface elements. We will go through the process of creating screens, hooking them up, and allowing you to start the game from the very beginning, all the way into the gameplay.

We will also look at in-game ...

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.