Browse Source

added the implement to delete the score after gameover

main
fdai2751 11 months ago
parent
commit
c174dd47d2
  1. 1
      src/main/java/pacmanGame/GameManager.java

1
src/main/java/pacmanGame/GameManager.java

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

Loading…
Cancel
Save