Summary
In this chapter, we have created an interactive menu with two possible appearances by coding the MenuUpdate
class and the MenuGraphics
class. Afterward, we created a menu in the factory in the exact same way we have been adding features to our game over the previous few chapters.
To finish, we created a new Graphics
-derived class called RainGraphics
, which creates a simple and effective rain effect. As usual, we wrapped this class in a GameObject
instance in the factory, popped it in the gameObjects
vector, and hey presto, it just works.
In the next chapter, we will add fireballs to the game that fly in from the left or right to disrupt the player’s progress.