From eb4a5b539fef915e8e7617c20d5e900610b9604f Mon Sep 17 00:00:00 2001 From: fdai7753 Date: Wed, 7 Feb 2024 17:35:32 +0100 Subject: [PATCH] Really for sure implemented ghost spawns and made them visible --- src/main/java/pacmanGame/GameManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/pacmanGame/GameManager.java b/src/main/java/pacmanGame/GameManager.java index 8d42687..3433aab 100644 --- a/src/main/java/pacmanGame/GameManager.java +++ b/src/main/java/pacmanGame/GameManager.java @@ -23,7 +23,11 @@ public class GameManager { visualizer = new VisualizerPlainText(this); player = new Player(this); player.Spawn(); + for (int i = 0; i < ghosts.length; i++) { + ghosts[i].spawn(); + } } + public void Update() { visualizer.Update(); if(time%5 == 0) {