|
@ -2,7 +2,7 @@ package pacmanGame; |
|
|
|
|
|
|
|
|
public class GameManager { |
|
|
public class GameManager { |
|
|
public int time = 0; |
|
|
public int time = 0; |
|
|
|
|
|
|
|
|
|
|
|
public Ghost[] ghosts; |
|
|
public Map map; |
|
|
public Map map; |
|
|
public Visualizer visualizer; |
|
|
public Visualizer visualizer; |
|
|
public Player player; |
|
|
public Player player; |
|
@ -11,6 +11,10 @@ public class GameManager { |
|
|
map = new Map(); |
|
|
map = new Map(); |
|
|
visualizer = new VisualizerPlainText(this); |
|
|
visualizer = new VisualizerPlainText(this); |
|
|
player = new Player(this); |
|
|
player = new Player(this); |
|
|
|
|
|
ghosts = new Ghost[4]; |
|
|
|
|
|
for(int i = 0; i< ghosts.length; i++) { |
|
|
|
|
|
ghosts[i] = new Ghost(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void Update() { |
|
|
public void Update() { |
|
|