intersection works
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user