Topic 1 - Variables and Data Types
Topic 2 - Conditionals and Strings
Topic 3 - Loops
Topic 4 - Arrays
Topic 5 - File Handling
Semester 1 Projects
Topic 6 - Classes/Objects and Methods
Topic 7 - ArrayLists
Semester Projects

Part 1c: Add the Scoreboard and Instructions

In MainClass.java:

  • Add a method called setUpInfo(). This method should instantiate and add scoreboardLabel and any other labels you would like to add to show instructions for the game.
  • Notice that scoreboardLabel is an instance variable already. It is of type Scoreboard, which extends GLabel. All of the methods for GLabel are available to Scoreboard.
  • You should create an instance variable for the instructions, which should be of type Instructions (already included).
  • Add a method called removeInstructions() which should remove the instructions from the screen when called.
  • The instructions, colors, and messages to the user are all up to you. You have complete creative freedom.