From 25602d6ff23c459be0a1b723ef049ccc6671febf Mon Sep 17 00:00:00 2001 From: fdai2751 Date: Sun, 4 Feb 2024 18:07:15 +0100 Subject: [PATCH] added pause boolean to gameManager --- src/main/java/pacmanGame/GameManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/pacmanGame/GameManager.java b/src/main/java/pacmanGame/GameManager.java index 818d0ed..2a1a3b2 100644 --- a/src/main/java/pacmanGame/GameManager.java +++ b/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; } + }