intersection works

This commit is contained in:
Urban Modig
2025-08-17 10:53:59 +02:00
parent acab63d91c
commit 1bbba216d2
6 changed files with 151 additions and 12 deletions

View File

@ -22,7 +22,7 @@ public class PlayingState implements GameState {
this.gameStateManager = gameStateManager;
this.map = new GameMap();
this.pacman = new PacMan(game, new CollisionChecker(map));
this.ghost = new Ghost(game, new GhostCollisionChecker(map));
this.ghost = new Ghost(game, new GhostCollisionChecker(map), null);
}
@Override
@ -58,4 +58,8 @@ public class PlayingState implements GameState {
pacman.setMoving(false);
pacman.setDirection(Direction.NONE);
}
public GameMap getMap() {
return map;
}
}