summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--map.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/map.c b/map.c
index dcf009d..b734490 100644
--- a/map.c
+++ b/map.c
@@ -44,19 +44,25 @@ Map map_default(void) {
Map map = map_new(20, 30);
/* Boundaries */
+ Pixel wall = P_RED;
+ wall.ch = '#';
+ wall.fg.r *= 0.8;
for (size_t x = 0; x < map.width; x++) { /* Horizontal */
- map.tiles[0][x] = P_RED;
- map.tiles[map.height - 1][x] = P_RED;
+ map.tiles[0][x] = wall;
+ map.tiles[map.height - 1][x] = wall;
}
for (size_t y = 0; y < map.height; y++) { /* Vertical */
- map.tiles[y][0] = P_RED;
- map.tiles[y][map.width - 1] = P_RED;
+ map.tiles[y][0] = wall;
+ map.tiles[y][map.width - 1] = wall;
}
/* Some random pillars */
- map.tiles[5][8] = P_GREEN;
- map.tiles[20][4] = P_GREEN;
- map.tiles[9][11] = P_GREEN;
+ Pixel pillar = P_GREEN;
+ pillar.ch = '|';
+ pillar.fg.g *= 0.8;
+ map.tiles[5][8] = pillar;
+ map.tiles[20][4] = pillar;
+ map.tiles[9][11] = pillar;
return map;
}