|
@ -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); |
|
|
|
|
|
} |
|
|
|
|
|
} |