diff --git a/src/main/java/pacmanGame/GameManager.java b/src/main/java/pacmanGame/GameManager.java index ff8c542..62063b7 100644 --- a/src/main/java/pacmanGame/GameManager.java +++ b/src/main/java/pacmanGame/GameManager.java @@ -27,9 +27,11 @@ public class GameManager { } public void Update() { - visualizer.Update(); - if(time%5 == 0) { - player.Move(); + if(!isPaused) { + visualizer.Update(); + if(time%5 == 0) { + player.Move(); + } } time++; }