Package base

Class MovingObjectsGame

java.lang.Object
base.GameLoop
base.MovingObjectsGame

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

    • MovingObjectsGame

      public MovingObjectsGame()
  • Method Details

    • 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).
    • defineLevels

      public void defineLevels()
      adds only one level to play (LevelMovingObjects).