The main menu
As in many games, there is a main menu when the game starts, and so, also, in our game we cannot forget a main menu. This will give us the possibility to explore a bit more of what we have touched upon in Chapter 1, A Flat World in Unity, about changing scenes in Unity.
Designing the main menu
As we learnt back in Chapter 3, Communicating with the Player – the User Interface, it's good practice to have a design of the user interface, and the main menu is an extension of the user interface. As such, it should be designed with the same principles of UI design in mind.
The menu for our game is very simple: we have a cool background, and three buttons placed just below the center of the screen. They are respectively:
- NEW GAME: Creates a ...
Get Getting Started with Unity 5.x 2D Game Development 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.