|
@ -31,12 +31,19 @@ public class GameManager { |
|
|
if(time == 300) { |
|
|
if(time == 300) { |
|
|
spawnCherry(); |
|
|
spawnCherry(); |
|
|
} |
|
|
} |
|
|
|
|
|
if (time == 600) { |
|
|
|
|
|
destroyCherry(); |
|
|
|
|
|
} |
|
|
time++; |
|
|
time++; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void spawnCherry() { |
|
|
public void spawnCherry() { |
|
|
map.GetCell(map.playerSpawn).type = "cherry"; |
|
|
map.GetCell(map.playerSpawn).type = "cherry"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void destroyCherry() { |
|
|
|
|
|
map.GetCell(map.playerSpawn).type = "empty"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public void ProcessInput(char inputChar) { |
|
|
public void ProcessInput(char inputChar) { |
|
|
if(inputChar == 27) { |
|
|
if(inputChar == 27) { |
|
|