Browse Source

added pause boolean to gameManager

remotes/origin/menu
fdai2751 11 months ago
parent
commit
25602d6ff2
  1. 4
      src/main/java/pacmanGame/GameManager.java

4
src/main/java/pacmanGame/GameManager.java

@ -7,6 +7,7 @@ public class GameManager {
public Visualizer visualizer;
public Player player;
public int score = 0;
public boolean isPaused;
public GameManager() {
setupGame();
@ -21,6 +22,8 @@ public class GameManager {
for(int i = 0; i < ghosts.length; i++) {
ghosts[i] = new Ghost(this);
}
isPaused = false;
}
public void Update() {
@ -59,4 +62,5 @@ public class GameManager {
}
return false;
}
}
Loading…
Cancel
Save