diff --git a/src/main/java/pacmanGame/GameManager.java b/src/main/java/pacmanGame/GameManager.java index 3433aab..5cdb53b 100644 --- a/src/main/java/pacmanGame/GameManager.java +++ b/src/main/java/pacmanGame/GameManager.java @@ -9,13 +9,14 @@ public class GameManager { public int score = 0; public boolean ghostIsEdible = false; public boolean isPaused; + public final int ghostCount = 10; public GameManager() { setupGame(); } public void setupGame(){ - ghosts = new Ghost[4]; + ghosts = new Ghost[ghostCount]; for (int i = 0; i < ghosts.length; i++) { ghosts[i] = new Ghost(this, i); }