File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/com/dinosaur/dinosaurexploder/controller Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public class DinosaurController {
3939 private boolean isSpawningPaused = false ;
4040 private BossSpawner bossSpawner ;
4141 private final Settings settings = SettingsProvider .loadSettings ();
42- private final CollisionHandler collisionHandler = new CollisionHandler ( levelManager ) ;
42+ private CollisionHandler collisionHandler ;
4343
4444
4545 /**
@@ -89,6 +89,7 @@ public void initInput() {
8989 public void initGame () {
9090 initGameEntities ();
9191 levelManager = new LevelManager ();
92+ collisionHandler = new CollisionHandler (levelManager );
9293 bossSpawner = new BossSpawner (settings , levelManager );
9394 CoinSpawner coinSpawner = new CoinSpawner (10 , 1.0 );
9495
You can’t perform that action at this time.
0 commit comments