|
@ -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) { |
|
|