summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-06-29 19:54:23 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-06-29 19:54:23 +0300
commit254d598d0db9ce29a3543ec797586e127ed6a8fc (patch)
treee134b6ef3e4b3dc379f607a8e630293fab0818e3
parent6fcb46123c154b3360640c0c0be611fde74ffe57 (diff)
downloadwafflestone-master.tar.xz
Add detail to default mapHEADmaster
-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;
}