From 866d55e96baaae5aeb68334bc5e538d0da8d89b5 Mon Sep 17 00:00:00 2001 From: fdai2751 Date: Thu, 8 Feb 2024 20:25:25 +0100 Subject: [PATCH] Refactoring: player died after 3 collision and gameOver --- src/main/java/pacmanGame/GameManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/pacmanGame/GameManager.java b/src/main/java/pacmanGame/GameManager.java index 9e527b9..0b0e6d0 100644 --- a/src/main/java/pacmanGame/GameManager.java +++ b/src/main/java/pacmanGame/GameManager.java @@ -58,7 +58,7 @@ public class GameManager { if(time%moveSpeed == 0) { player.Move(); if(ghostPlayerColisionTest()) { - livesRemaining--; + handleGhostCollision(); } for(int i = 0; i