Package base

Class BreakoutGame

java.lang.Object
base.GameLoop
base.BreakoutGame

public class BreakoutGame extends GameLoop
main class to start a game with only one level.
  • Constructor Details

    • BreakoutGame

      public BreakoutGame()
  • Method Details

    • defineLevels

      public void defineLevels()
      adds only one level to play (playground.LevelBreakout1).
    • main

      public static void main(String[] args) throws IOException
      starts this game.
      Parameters:
      args - command line parameters (forwarded to GameLoop.runGame(String[])).
      Throws:
      IOException - if highscore.txt file cannot be written or accessed, the exception is thrown (and game ends).