diff --git a/bin/Ghost.class b/bin/Ghost.class index 3e448ab..0e00c2a 100644 Binary files a/bin/Ghost.class and b/bin/Ghost.class differ diff --git a/src/Ghost.java b/src/Ghost.java index 1023d09..5769201 100644 --- a/src/Ghost.java +++ b/src/Ghost.java @@ -60,22 +60,22 @@ public class Ghost extends Picture { // Die public int getPos(char coordinate, long dt) { // Hier kommt die zuvor erwähnte delta time ins Spiel if (coordinate == 'x') { // Auslesen der 'x' - Koordinate: - if (left && dt != 0 && (Game.frames % 3) == 0) { + if (left && dt != 0 && Game.frames % 4 == 0) { xPos -= 1; - } else if (right && dt != 0 && (Game.frames % 3) == 0) { + } else if (right && dt != 0 && Game.frames % 4 == 0) { xPos += 1; } return (int) xPos; } else if (coordinate == 'y') { // Auslesen der 'y' - Koordinate: - if (down && dt != 0 && (Game.frames % 3) == 0) { + if (down && dt != 0 && Game.frames % 4 == 0) { yPos += 1; - } else if (up && dt != 0 && (Game.frames % 3) == 0) { + } else if (up && dt != 0 && Game.frames % 4 == 0) { yPos -= 1;