Project 2: Graphical Scorched Earth Clone
For this project, you will be implementing a graphical user interface that you will attach to the game you created in Project 1.
Below I have specified a class and method structure for you to follow. This is probably not the best solution to the problem, so you are welcome to think up your own design. Whatever you do, you should tie it into the backend (not the ConsoleInterface) of your Project 1 game.
Classes
- GUIRunner - I am providing this for you here
- GUIMain (Subclass of JPanel)
- GUIMain(World world)
- void reset() // Return any status variables to original state.
- void init() // Setup interface (initialize layout, add widgets, add listeners, etc.)
- void paint(Graphics g) // Draw current state of game.
- GUIMenu (Subclass of JMenuBar)
- File>New should start a new game
- File>Exit should exit the program
Sample Output




