diff --git a/src/main/java/JumpGame.java b/src/main/java/JumpGame.java index caa33a5..c711359 100644 --- a/src/main/java/JumpGame.java +++ b/src/main/java/JumpGame.java @@ -1,16 +1,17 @@ import entities.*; +import models.GroundModel; import models.IModel; import models.ModelType; import models.PlayerModel; import views.IView; import views.PlayerRenderer; +import views.TileRenderer; import java.util.ArrayList; public class JumpGame { //--------------------------------------------------------------- // private Time time = new Time(); - private Ground ground = new Ground(); // private Position position = new Position(ground); // private Gameover gameover = new Gameover(position); // private Onground onground = new Onground(ground, position); @@ -42,11 +43,12 @@ public void init() { // model - models.add(new PlayerModel(ground)); + models.add(new GroundModel()); + models.add(new PlayerModel(models.get(ModelType.GroundModel))); // view - views.add(new PlayerRenderer("resources/chicken.png", 0.5)); - + views.add(new TileRenderer("resources/tile.png", 1)); + views.add(new PlayerRenderer("resources/chicken.png", 1)); } //--------------------------------------------------------------- @@ -64,7 +66,7 @@ // // マイフレーム更新 - gravity(0.01); //重力 +// gravity(0.01); //重力 } //---------------------------------------------------------------