Browse Source

refactoring: Fixed ghosts changing own spawn while moving

remotes/origin/ghostsbehaviour
fdai7753 11 months ago
parent
commit
b359005271
  1. 2
      src/main/java/pacmanGame/Ghost.java

2
src/main/java/pacmanGame/Ghost.java

@ -21,6 +21,6 @@ public class Ghost {
} }
public void spawn() { public void spawn() {
this.position = gameManager.map.ghostSpawns[ghostNumber];
this.position = gameManager.map.ghostSpawns[ghostNumber].Clone();
} }
} }
Loading…
Cancel
Save