|
@ -48,6 +48,7 @@ public class VisualizerPlainText implements Visualizer { |
|
|
for(int x = 0; x < map.size.x; x++) { |
|
|
for(int x = 0; x < map.size.x; x++) { |
|
|
Cell cell = map.GetCell(new Vector2(x, map.size.y - 1 - y)); |
|
|
Cell cell = map.GetCell(new Vector2(x, map.size.y - 1 - y)); |
|
|
boolean containsGhosts = false; |
|
|
boolean containsGhosts = false; |
|
|
|
|
|
boolean containsGhosts1 = false; |
|
|
boolean containsPlayer = false; |
|
|
boolean containsPlayer = false; |
|
|
for( int i = 0; i < gameManager.ghosts.length; i++) { |
|
|
for( int i = 0; i < gameManager.ghosts.length; i++) { |
|
|
if(gameManager.ghosts[i].position.equals(cell.pos)) { |
|
|
if(gameManager.ghosts[i].position.equals(cell.pos)) { |
|
@ -64,6 +65,9 @@ public class VisualizerPlainText implements Visualizer { |
|
|
else if(containsGhosts) { |
|
|
else if(containsGhosts) { |
|
|
output += ghostSprite; |
|
|
output += ghostSprite; |
|
|
} |
|
|
} |
|
|
|
|
|
else if (containsGhosts1) { |
|
|
|
|
|
output += ghostSprite1; |
|
|
|
|
|
} |
|
|
else if (sprites.containsKey(cell.type)) { |
|
|
else if (sprites.containsKey(cell.type)) { |
|
|
|
|
|
|
|
|
output += sprites.get(cell.type); |
|
|
output += sprites.get(cell.type); |
|
|