Let's make a class called "Game" that is the top-level class. It will be the game orchestrator, creating all the necessary subclasses and running everything.
Move the graphics object into the Game class. Create and run the graphics object from a "run" function in the Game class.
Remember to keep any Graphics details hidden inside the Graphics class.
Let's make a class called "Game" that is the top-level class. It will be the game orchestrator, creating all the necessary subclasses and running everything.
Move the graphics object into the Game class. Create and run the graphics object from a "run" function in the Game class.
Remember to keep any Graphics details hidden inside the Graphics class.