Browse Source

refractoring: new fonction Update() time variable in 5 step

remotes/origin/menu
fdai2751 11 months ago
parent
commit
9e8bffd70d
  1. 3
      src/main/java/pacmanGame/GameManager.java

3
src/main/java/pacmanGame/GameManager.java

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

Loading…
Cancel
Save