Browse Source

Continuation of adding ghost spawns

remotes/origin/ghosts
fdai7753 11 months ago
parent
commit
3b4a3f89c4
  1. 5
      src/main/java/pacmanGame/Map.java

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

@ -52,6 +52,8 @@ public class Map {
for(int i = 0; i < 10; i++) { for(int i = 0; i < 10; i++) {
this.put(i+"", "empty"); this.put(i+"", "empty");
} }
this.put("0", "empty");
}}; }};
public GameManager gameManager; public GameManager gameManager;
@ -72,7 +74,6 @@ public class Map {
} }
public void GenerateMap(String[] mapData) { public void GenerateMap(String[] mapData) {
int sizeY = mapData.length; int sizeY = mapData.length;
int sizeX = mapData[0].length(); int sizeX = mapData[0].length();
@ -90,8 +91,6 @@ public class Map {
cells[x][y] = new Cell(cellPos, cellType); cells[x][y] = new Cell(cellPos, cellType);
//for(int i = 0; i < gameManager.ghosts.length; i++)
if(cellChar == playerSpawnChar) { if(cellChar == playerSpawnChar) {
playerSpawn = cellPos.Clone(); playerSpawn = cellPos.Clone();
} }

Loading…
Cancel
Save