Space von Team 22 (Nico B. Benjamin F. Lea A.)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.2 KiB

  1. package base;
  2. import java.io.IOException;
  3. import java.util.ArrayList;
  4. import org.apache.logging.log4j.LogManager;
  5. import org.apache.logging.log4j.Logger;
  6. import playground.LevelMovingHitObjects;
  7. import playground.Playground;
  8. /**
  9. * main class to start a game with only one level {@link playground.LevelMovingHitObjects}.
  10. *
  11. */
  12. public class MovingObjectsGame extends GameLoop {
  13. private static Logger logger = LogManager.getLogger(MovingObjectsGame.class);
  14. /**
  15. * constructor defines {@link GameLoop#levels} with one instance of
  16. * {@link playground.LevelMovingHitObjects}.
  17. */
  18. MovingObjectsGame() {
  19. super();
  20. this.levels = new ArrayList<Playground>(1);
  21. this.levels.add(new LevelMovingHitObjects());
  22. }
  23. /**
  24. * starts this game.
  25. *
  26. * @param args command line parameters (forwarded to {@link GameLoop#runGame(String[])}).
  27. * @throws IOException if highscore.txt file cannot be written or accessed, the exception is
  28. * thrown (and game ends).
  29. */
  30. public static void main(String[] args) throws IOException {
  31. logger.info("Starting Game Program...let's play and don't get hit!");
  32. GameLoop myGame = new MovingObjectsGame();
  33. myGame.runGame(args);
  34. }
  35. }