Browse Source

added update fonction inside GameManager

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

2
src/main/java/pacmanGame/GameManager.java

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

Loading…
Cancel
Save