Chapter 5 was mostly code. We enhanced the
GameMaster Class to handle the game settings and scene management. We began the chapter by making the
GameMaster handle the user interface, the player character data, and the game settings, which currently is just the volume for the background music.
We added a new UI element that displays the settings panel for the game. At the moment, it only contains the main volume control. Next, we added the necessary code in the
UIController class and the
GameMaster class to handle the display of the settings window and also the slider value passed from the UI component to the
UIController to the
We also made the
GameMaster class into a singleton. A singleton in software engineering is a ...