Up to this point, we have only worked with the startScene but in this chapter we will see how to add other scenes to the game, and we'll need a MainMenu scene from where we can go to other scenes, like the options or the achievements scenes.
Each of these scenes will have specific game objects and buttons which will enable us to either change settings or buttons that can take us back to the MainMenu Scene.
The MainMenu scene also needs to have a play button which should link to the startScene which in turn is responsible for starting the game.
Obviously, we can add more scenes and menus according to the needs of the game.
Let us first see how to add buttons to the startScene, so that at the end of the game we can restart the game.
This chapter includes the following topics:
- Introduction to buttons
- Organizing the project folder structure
- Adding a game restart button to the startScene...