|
@ -7,6 +7,7 @@ public class GameManager { |
|
|
public Visualizer visualizer; |
|
|
public Visualizer visualizer; |
|
|
public Player player; |
|
|
public Player player; |
|
|
public int score = 0; |
|
|
public int score = 0; |
|
|
|
|
|
public boolean isPaused; |
|
|
|
|
|
|
|
|
public GameManager() { |
|
|
public GameManager() { |
|
|
setupGame(); |
|
|
setupGame(); |
|
@ -21,6 +22,8 @@ public class GameManager { |
|
|
for(int i = 0; i < ghosts.length; i++) { |
|
|
for(int i = 0; i < ghosts.length; i++) { |
|
|
ghosts[i] = new Ghost(this); |
|
|
ghosts[i] = new Ghost(this); |
|
|
} |
|
|
} |
|
|
|
|
|
isPaused = false; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void Update() { |
|
|
public void Update() { |
|
@ -59,4 +62,5 @@ public class GameManager { |
|
|
} |
|
|
} |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |