diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-06-29 19:54:23 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-06-29 19:54:23 +0300 |
| commit | 254d598d0db9ce29a3543ec797586e127ed6a8fc (patch) | |
| tree | e134b6ef3e4b3dc379f607a8e630293fab0818e3 | |
| parent | 6fcb46123c154b3360640c0c0be611fde74ffe57 (diff) | |
| download | wafflestone-master.tar.xz | |
| -rw-r--r-- | map.c | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -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; } |
