Browse Source

Really for sure implemented ghost spawns and made them visible

remotes/origin/ghostsbehaviour
fdai7753 11 months ago
parent
commit
eb4a5b539f
  1. 4
      src/main/java/pacmanGame/GameManager.java

4
src/main/java/pacmanGame/GameManager.java

@ -23,7 +23,11 @@ public class GameManager {
visualizer = new VisualizerPlainText(this); visualizer = new VisualizerPlainText(this);
player = new Player(this); player = new Player(this);
player.Spawn(); player.Spawn();
for (int i = 0; i < ghosts.length; i++) {
ghosts[i].spawn();
}
} }
public void Update() { public void Update() {
visualizer.Update(); visualizer.Update();
if(time%5 == 0) { if(time%5 == 0) {

Loading…
Cancel
Save