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
38 lines
1021 B
//Coding Team 66
|
|
package base;
|
|
|
|
import java.io.IOException;
|
|
|
|
//importieren der neuen Level aus dem Package Playground
|
|
import playground.Level1;
|
|
import playground.Level3;
|
|
import playground.LevelBoss;
|
|
import playground.LevelHitTwice;
|
|
import playground.Level5;
|
|
import playground.Level6;
|
|
import playground.Level7;
|
|
import playground.LevelWithBox;
|
|
|
|
|
|
public class MultiLevelGame extends GameLoop{
|
|
|
|
//main wie bei GameLoop, nur das stattdessen Instanz von MulitLevelGame erstellt wird
|
|
public static void main(String[] args) throws IOException {
|
|
MultiLevelGame gl = new MultiLevelGame();
|
|
gl.runGame(args);
|
|
}
|
|
|
|
@Override //Überschreiben der Methode defineLevels
|
|
void defineLevels() {
|
|
this.resetLevels();
|
|
this.addLevel(new LevelWithBox());
|
|
this.addLevel(new Level1());
|
|
this.addLevel(new LevelHitTwice());
|
|
this.addLevel(new Level3());
|
|
this.addLevel(new LevelBoss());
|
|
this.addLevel(new Level5());
|
|
this.addLevel(new Level6());
|
|
this.addLevel(new Level7());
|
|
}
|
|
|
|
}
|