From 0a380cea3341d19b2579961f48825aac3b9e84ce Mon Sep 17 00:00:00 2001 From: fdai7910 Date: Wed, 7 Feb 2024 23:07:11 +0100 Subject: [PATCH] made pills spawnable in Map --- src/main/java/pacmanGame/Map.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/pacmanGame/Map.java b/src/main/java/pacmanGame/Map.java index 40ab6aa..5e119f9 100644 --- a/src/main/java/pacmanGame/Map.java +++ b/src/main/java/pacmanGame/Map.java @@ -10,7 +10,7 @@ public class Map { "wwwwwwwwwwwwwwwwwwwwwwwwwwwwww", "ww............ww............ww", "ww.wwww.wwwww.ww.wwwww.wwww.ww", - "ww.wwww.wwwww.ww.wwwww.wwww.ww", + "wwpwwww.wwwww.ww.wwwww.wwwwpww", "ww.wwww.wwwww.ww.wwwww.wwww.ww", "ww..........................ww", "ww.wwww.ww.wwwwwwww.ww.wwww.ww", @@ -30,7 +30,7 @@ public class Map { "ww............ww............ww", "ww.wwww.wwwww.ww.wwwww.wwww.ww", "ww.wwww.wwwww.ww.wwwww.wwww.ww", - "ww...ww.......s........ww...ww", + "wwp..ww.......s........ww..pww", "wwww.ww.ww.wwwwwwww.ww.ww.wwww", "wwww.ww.ww.wwwwwwww.ww.ww.wwww", "ww......ww....ww....ww......ww", @@ -46,6 +46,7 @@ public class Map { this.put("s", "empty"); this.put(".", "dot"); this.put("w", "wall"); + this.put("p", "pill"); }}; public Cell[][] cells;