|
|
@ -9,7 +9,7 @@ public class GameManager { |
|
|
|
public int score = 0; |
|
|
|
public boolean ghostIsEdible = false; |
|
|
|
public int timeStopPillEffect; |
|
|
|
public int moveSpeed = 5; |
|
|
|
public int moveSpeed; |
|
|
|
|
|
|
|
public GameManager() { |
|
|
|
setupGame(); |
|
|
@ -17,6 +17,7 @@ public class GameManager { |
|
|
|
|
|
|
|
public void setupGame(){ |
|
|
|
time = 0; |
|
|
|
moveSpeed = 5; |
|
|
|
map = new Map(Map.mapClassic,this); |
|
|
|
visualizer = new VisualizerPlainText(this); |
|
|
|
player = new Player(this); |
|
|
@ -54,7 +55,7 @@ public class GameManager { |
|
|
|
} |
|
|
|
|
|
|
|
public String randomFruit() { |
|
|
|
String fruitTypes[] = {"cherry","strawberry","orange","apple"}; |
|
|
|
String fruitTypes[] = {"cherry","strawberry","orange","apple","crystal"}; |
|
|
|
int randomNumber = (int) (Math. random() * (fruitTypes.length)); |
|
|
|
return fruitTypes[randomNumber]; |
|
|
|
} |
|
|
|