diff --git a/src/main/java/pacmanGame/Cell.java b/src/main/java/pacmanGame/Cell.java index 46d21e3..b9dcb48 100644 --- a/src/main/java/pacmanGame/Cell.java +++ b/src/main/java/pacmanGame/Cell.java @@ -4,6 +4,7 @@ public class Cell { public Vector2 pos; public String type; public final Map map; + public GameManager gameManager; public Cell(Vector2 pos, String type, Map map) { this.pos = pos; @@ -18,7 +19,9 @@ public class Cell { public void triggerPill() { this.type = "empty"; - //todo: code + gameManager.score += 100; + int timeStopPillEffect = gameManager.time + 200; + //ghost.triggerPillEffect(timeStopPillEffect); } public void triggerFruit() {