|
@ -25,6 +25,7 @@ public class GameManager { |
|
|
moveSpeed = 5; |
|
|
moveSpeed = 5; |
|
|
livesRemaining = 3; |
|
|
livesRemaining = 3; |
|
|
failedAttempts = 0; |
|
|
failedAttempts = 0; |
|
|
|
|
|
score = 0; |
|
|
ghosts = new Ghost[ghostCount]; |
|
|
ghosts = new Ghost[ghostCount]; |
|
|
for (int i = 0; i < ghosts.length; i++) { |
|
|
for (int i = 0; i < ghosts.length; i++) { |
|
|
ghosts[i] = new Ghost(this, i); |
|
|
ghosts[i] = new Ghost(this, i); |
|
|