|
|
@ -0,0 +1,33 @@ |
|
|
|
package base; |
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
import playground.LevelMovingObjects; |
|
|
|
|
|
|
|
/** |
|
|
|
* main class to start a game with only one level {@link playground.LevelMovingObjects}. |
|
|
|
* |
|
|
|
*/ |
|
|
|
public class MovingObjectsGame extends GameLoop { |
|
|
|
|
|
|
|
/** |
|
|
|
* starts this game. |
|
|
|
* |
|
|
|
* @param args command line parameters (forwarded to {@link GameLoop#runGame(String[])}). |
|
|
|
* @throws IOException if highscore.txt file cannot be written or accessed, the exception is |
|
|
|
* thrown (and game ends). |
|
|
|
*/ |
|
|
|
public static void main(String[] args) throws IOException { |
|
|
|
GameLoop myGame = new MovingObjectsGame(); |
|
|
|
myGame.runGame(args); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* adds only one level to play ({@link playground.LevelMovingObjects}). |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public void defineLevels() { |
|
|
|
this.resetLevels(); |
|
|
|
this.addLevel(new LevelMovingObjects()); |
|
|
|
} |
|
|
|
|
|
|
|
} |