Time for action — showing the menu
The menu screen is shown using the following steps:
- Add the method
ShowMenu into the game class.
- Set the game mode to
gmMenu and activate layers with it. Then, close the method.
We created a simple method to display the menu layer.