Browse Source

Added ghost spawns to Map

remotes/origin/ghosts
fdai7753 11 months ago
parent
commit
c1efe11b68
  1. 10
      src/main/java/pacmanGame/Map.java

10
src/main/java/pacmanGame/Map.java

@ -19,8 +19,8 @@ public class Map {
"wwwwwww.wweeeeeeeeeeww.wwwwwww",
"wwwwwww.wwewwwwwwwweww.wwwwwww",
"wwwwwww.wweweeeeeeweww.wwwwwww",
"eeeeeee.eeeweeeeeeweee.eeeeeee",
"wwwwwww.wweweeeeeeweww.wwwwwww",
"eeeeeee.eeewe1ee3eweee.eeeeeee",
"wwwwwww.wwewe2ee4eweww.wwwwwww",
"wwwwwww.wweweeeeeeweww.wwwwwww",
"wwwwwww.wwewwwwwwwweww.wwwwwww",
"wwwwwww.wweeeeeeeeeeww.wwwwwww",
@ -39,11 +39,17 @@ public class Map {
"wwwwwwwwwwwwwwwwwwwwwwwwwwwwww"
};
public final int ghostSpawnCount = 4;
public final HashMap<String, String> mapTypes = new HashMap<String,String>(){{
this.put("e", "empty");
this.put("s", "empty");
this.put(".", "dot");
this.put("w", "wall");
for(int i = 0; i < 10; i++) {
this.put(i+"", "empty");
}
}};
public Cell[][] cells;

Loading…
Cancel
Save