From c174dd47d207177cb1176782faa8502245ec2bc7 Mon Sep 17 00:00:00 2001 From: fdai2751 Date: Thu, 8 Feb 2024 20:47:31 +0100 Subject: [PATCH] added the implement to delete the score after gameover --- src/main/java/pacmanGame/GameManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/pacmanGame/GameManager.java b/src/main/java/pacmanGame/GameManager.java index 63e51a0..f87990a 100644 --- a/src/main/java/pacmanGame/GameManager.java +++ b/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);