From 254d598d0db9ce29a3543ec797586e127ed6a8fc Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Mon, 29 Jun 2026 19:54:23 +0300 Subject: Add detail to default map --- map.c | 20 +++++++++++++------- 1 file 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; } -- cgit v1.2.3