Browse Source

made pills spawnable in Map

remotes/origin/player
fdai7910 11 months ago
parent
commit
0a380cea33
  1. 5
      src/main/java/pacmanGame/Map.java

5
src/main/java/pacmanGame/Map.java

@ -10,7 +10,7 @@ public class Map {
"wwwwwwwwwwwwwwwwwwwwwwwwwwwwww", "wwwwwwwwwwwwwwwwwwwwwwwwwwwwww",
"ww............ww............ww", "ww............ww............ww",
"ww.wwww.wwwww.ww.wwwww.wwww.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.wwww.wwwww.ww.wwwww.wwww.ww",
"ww..........................ww", "ww..........................ww",
"ww.wwww.ww.wwwwwwww.ww.wwww.ww", "ww.wwww.ww.wwwwwwww.ww.wwww.ww",
@ -30,7 +30,7 @@ public class Map {
"ww............ww............ww", "ww............ww............ww",
"ww.wwww.wwwww.ww.wwwww.wwww.ww", "ww.wwww.wwwww.ww.wwwww.wwww.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",
"wwww.ww.ww.wwwwwwww.ww.ww.wwww", "wwww.ww.ww.wwwwwwww.ww.ww.wwww",
"ww......ww....ww....ww......ww", "ww......ww....ww....ww......ww",
@ -46,6 +46,7 @@ public class Map {
this.put("s", "empty"); this.put("s", "empty");
this.put(".", "dot"); this.put(".", "dot");
this.put("w", "wall"); this.put("w", "wall");
this.put("p", "pill");
}}; }};
public Cell[][] cells; public Cell[][] cells;

Loading…
Cancel
Save