3 Commits

Author SHA1 Message Date
Emma Nagelschmidt c24cb1150a edit class MultiLevelGame and 4 levels 3 years ago
Emma Nagelschmidt e45c200754 Merge branch 'master' of https://gogs.informatik.hs-fulda.de/fdai7174/Gruppe26 3 years ago
Emma Nagelschmidt 468f9b7c13 prog2codebase 3 years ago
  1. 26
      GameProject/src/base/MultiLevelGame.java

26
GameProject/src/base/MultiLevelGame.java

@ -0,0 +1,26 @@
package base;
import java.io.IOException;
import playground.Level1;
import playground.Level3;
import playground.LevelBoss;
import playground.LevelHitTwice;
public class MultiLevelGame extends GameLoop{
@Override
void defineLevels() {
this.resetLevels();
this.addLevel(new Level1());
this.addLevel(new LevelHitTwice());
this.addLevel(new Level3());
this.addLevel(new LevelBoss());
}
public static void main(String[] args) throws IOException {
GameLoop mlg = new MultiLevelGame();
mlg.runGame(args);
}
}
Loading…
Cancel
Save