diff --git a/src/main/java/JumpGame.java b/src/main/java/JumpGame.java index 1004826..344a7a1 100644 --- a/src/main/java/JumpGame.java +++ b/src/main/java/JumpGame.java @@ -22,9 +22,8 @@ //--------------------------------------------------------------- // 初期化 public void init() { - JumpGameModel jumpGameModel = (JumpGameModel)model; // view - views.add(new TileMapRenderer(jumpGameModel.getFlags().getValues())); + views.add(new TileMapRenderer(model)); views.add(new PlayerRenderer("resources/chicken.png")); } @@ -38,6 +37,8 @@ view.display(); } + + // Modelの更新 // // Space キーのインプット