diff --git a/src/main/java/JumpGame.java b/src/main/java/JumpGame.java index c711359..608970f 100644 --- a/src/main/java/JumpGame.java +++ b/src/main/java/JumpGame.java @@ -12,15 +12,8 @@ public class JumpGame { //--------------------------------------------------------------- // private Time time = new Time(); -// private Position position = new Position(ground); // private Gameover gameover = new Gameover(position); -// private Onground onground = new Onground(ground, position); -// private Velocity velocity = new Velocity(position, onground); // private Clear clear = new Clear(position); -// private Move move = new Move(velocity); -// private Acceleration acceleration = new Acceleration(velocity, onground); -// private Force force = new Force(acceleration); -// private Mass mass = new Mass(acceleration); //--------------------------------------------------------------- // new @@ -44,7 +37,9 @@ // model models.add(new GroundModel()); - models.add(new PlayerModel(models.get(ModelType.GroundModel))); + + GroundModel groundModel = (GroundModel) models.get(ModelType.GroundModel); + models.add(new PlayerModel(groundModel.getGround())); // view views.add(new TileRenderer("resources/tile.png", 1)); @@ -76,6 +71,5 @@ } //--------------------------------------------------------------- - //--------------------------------------------------------------- } \ No newline at end of file