diff --git a/src/main/java/pacmanGame/GameManager.java b/src/main/java/pacmanGame/GameManager.java index 96a0953..9e527b9 100644 --- a/src/main/java/pacmanGame/GameManager.java +++ b/src/main/java/pacmanGame/GameManager.java @@ -57,6 +57,9 @@ public class GameManager { if(!isPaused) { if(time%moveSpeed == 0) { player.Move(); + if(ghostPlayerColisionTest()) { + livesRemaining--; + } for(int i = 0; i