Skip to content

Commit 309d8e8

Browse files
committed
fixed colors and path stuff
1 parent c05d7ec commit 309d8e8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/dev/zwazel/internal/debug/MapVisualiser.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private void drawEntities(Graphics2D g2d, MapDefinition mapDefinition) {
9797
int x = (int) (tankPos.getX() * CELL_SIZE) - TANK_RADIUS / 2;
9898
int y = (int) (tankPos.getZ() * CELL_SIZE) - TANK_RADIUS / 2;
9999

100-
g2d.setColor(Color.BLUE);
100+
g2d.setColor(Color.YELLOW);
101101
g2d.fillOval(
102102
x,
103103
y,
@@ -131,7 +131,7 @@ private void drawEntities(Graphics2D g2d, MapDefinition mapDefinition) {
131131
int x = (int) (flagBasePos.getX() * CELL_SIZE) - FLAG_BASE_RADIUS / 2;
132132
int y = (int) (flagBasePos.getZ() * CELL_SIZE) - FLAG_BASE_RADIUS / 2;
133133

134-
g2d.setColor(Color.YELLOW);
134+
g2d.setColor(Color.CYAN);
135135
g2d.fillOval(
136136
x,
137137
y,
@@ -257,6 +257,8 @@ private void drawPath(Graphics2D g2d, MapDefinition mapDefinition) {
257257

258258
// Fourth pass: Draw costs
259259
if (graph == null) {
260+
// Fifth pass: Draw cell borders
261+
drawCellBorders(g2d, mapDefinition);
260262
return;
261263
}
262264
for (Node[] row : graph.getNodes()) {

0 commit comments

Comments
 (0)