diff --git a/bin/Game.class b/bin/Game.class index c39be55..f48f306 100644 Binary files a/bin/Game.class and b/bin/Game.class differ diff --git a/src/Game.java b/src/Game.java index 2eca0a9..1f9315f 100644 --- a/src/Game.java +++ b/src/Game.java @@ -399,10 +399,10 @@ public class Game { for (int i = 0; i < ghosts.length; i++) { ghosts[i].setLocation(ghosts[i].getPos('x', dt), ghosts[i].getPos('y', dt)); - if (player.getPos('x', 0) < ghosts[i].getPos('x', 0) + 20 - && player.getPos('x', 0) > ghosts[i].getPos('x', 0) - 20 - && player.getPos('y', 0) < ghosts[i].getPos('y', 0) + 20 - && player.getPos('y', 0) > ghosts[i].getPos('y', 0) - 20) + if (player.getPos('x', 0) < ghosts[i].getPos('x', 0) + 18 + && player.getPos('x', 0) > ghosts[i].getPos('x', 0) - 18 + && player.getPos('y', 0) < ghosts[i].getPos('y', 0) + 14 + && player.getPos('y', 0) > ghosts[i].getPos('y', 0) - 14) if (ghosts[0].feared) { ghosts[i].setIsDead(true); ghosts[i].setDeathTimer(1000);