Browse Source

added update fonction inside GameManager

remotes/origin/menu
fdai2751 11 months ago
parent
commit
7b8364cb96
  1. 8
      src/main/java/pacmanGame/GameManager.java

8
src/main/java/pacmanGame/GameManager.java

@ -27,9 +27,11 @@ public class GameManager {
} }
public void Update() { public void Update() {
visualizer.Update();
if(time%5 == 0) {
player.Move();
if(!isPaused) {
visualizer.Update();
if(time%5 == 0) {
player.Move();
}
} }
time++; time++;
} }

Loading…
Cancel
Save