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.

38 lines
1021 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. //Coding Team 66
  2. package base;
  3. import java.io.IOException;
  4. //importieren der neuen Level aus dem Package Playground
  5. import playground.Level1;
  6. import playground.Level3;
  7. import playground.LevelBoss;
  8. import playground.LevelHitTwice;
  9. import playground.Level5;
  10. import playground.Level6;
  11. import playground.Level7;
  12. import playground.LevelWithBox;
  13. public class MultiLevelGame extends GameLoop{
  14. //main wie bei GameLoop, nur das stattdessen Instanz von MulitLevelGame erstellt wird
  15. public static void main(String[] args) throws IOException {
  16. MultiLevelGame gl = new MultiLevelGame();
  17. gl.runGame(args);
  18. }
  19. @Override //�berschreiben der Methode defineLevels
  20. void defineLevels() {
  21. this.resetLevels();
  22. this.addLevel(new LevelWithBox());
  23. this.addLevel(new Level1());
  24. this.addLevel(new LevelHitTwice());
  25. this.addLevel(new Level3());
  26. this.addLevel(new LevelBoss());
  27. this.addLevel(new Level5());
  28. this.addLevel(new Level6());
  29. this.addLevel(new Level7());
  30. }
  31. }