From 18bba2941eef0134462b5b1850da4ac5abe10973 Mon Sep 17 00:00:00 2001 From: Kai Date: Mon, 25 Apr 2022 16:31:38 +0200 Subject: [PATCH] =?UTF-8?q?Neue=20Klasse=20MultiLevelgame,=20start=20f?= =?UTF-8?q?=C3=BCr=20eigenes=20spiel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GameProject/src/base/MultiLevellGame.java | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 GameProject/src/base/MultiLevellGame.java diff --git a/GameProject/src/base/MultiLevellGame.java b/GameProject/src/base/MultiLevellGame.java new file mode 100644 index 0000000..2780ff8 --- /dev/null +++ b/GameProject/src/base/MultiLevellGame.java @@ -0,0 +1,26 @@ +package base; + +import java.io.IOException; + +import playground.Level1; +import playground.HitTwiceLevel; +import playground.Level3; +import playground.LevelBoss; + +public class MultiLevellGame extends GameLoop{ + + @Override + void defineLevels() { + this.resetLevels(); + this.addLevel(new Level1()); + this.addLevel(new HitTwiceLevel()); + this.addLevel(new Level3()); + this.addLevel(new LevelBoss()); + } + + + public static void main(String[] args) throws IOException { + MultiLevellGame gl = new MultiLevellGame(); + gl.runGame(args); + } +}