Minor fixes
This commit is contained in:
@ -211,7 +211,7 @@ public class PlayingState implements GameState {
|
||||
for (Ghost ghost : ghostManager.getGhosts()) {
|
||||
if (deathInProgress) return; // guard
|
||||
//if(overlap(pacman, ghost)
|
||||
double dist = pacman.distanceTo(ghost.getPosition());
|
||||
double dist = pacman.distanceTo(ghost.getPosition().asPoint());
|
||||
if (dist < GameMap.MAP_TILESIZE / 2.0) {
|
||||
if (ghost.isEaten()) return;
|
||||
if (ghost.isFrightened()) {
|
||||
|
||||
Reference in New Issue
Block a user