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 new game for the player, by loading the level we have been creating so far
SETTINGS: Triggers a setting screen, where the player can manipulate some options (this is left as an exercise, in the Homework section)
QUIT: As the name suggests, it closes the...