|
@ -47,6 +47,18 @@ public class VisualizerPlainText implements Visualizer { |
|
|
for(int y = 0; y < map.size.y; y++) { |
|
|
for(int y = 0; y < map.size.y; y++) { |
|
|
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)); |
|
|
|
|
|
|
|
|
|
|
|
if(gameManager.isPaused && 5 < y && y <= 10){ |
|
|
|
|
|
if(x == 0) { |
|
|
|
|
|
if(y == 8){ |
|
|
|
|
|
output += "Game Paused!"; |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
output += ""; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
boolean containsGhosts = false; |
|
|
boolean containsGhosts = 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++) { |
|
@ -69,7 +81,8 @@ public class VisualizerPlainText implements Visualizer { |
|
|
output += sprites.get(cell.type); |
|
|
output += sprites.get(cell.type); |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
System.out.println("unknown type " + cell.type); |
|
|
|
|
|
|
|
|
System.out.println("unknown type" + cell.type); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
output += "\n"; |
|
|
output += "\n"; |
|
|