aboutsummaryrefslogtreecommitdiff
path: root/src/defaults.h
diff options
context:
space:
mode:
authorSopár Adrián <adrian.sopar@protonmail.com>2024-06-23 15:33:35 +0200
committerSopár Adrián <adrian.sopar@protonmail.com>2024-06-23 15:33:35 +0200
commit90f9e3942d5ff3bcb58470926f68391211bebbad (patch)
treefaa16054767c1739a3b3df6bdb7c88e584d0e298 /src/defaults.h
parent74ea6dc86646cee9915292d73d8c7afef01ef3e0 (diff)
Hide the part of the map that cannot be seen from the player's point of view.
Diffstat (limited to 'src/defaults.h')
-rw-r--r--src/defaults.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/defaults.h b/src/defaults.h
index d4fdc1b..f4914ec 100644
--- a/src/defaults.h
+++ b/src/defaults.h
@@ -8,6 +8,7 @@
static inline void set_blocks(struct game_blocks *game_blocks)
{
+ game_blocks->hidden = get_block('?', false, get_color_code(COLOR_WHITE, COLOR_BLACK));
game_blocks->wall = get_block(' ', false, get_color_code(COLOR_BLACK, COLOR_WHITE));
game_blocks->road = get_block(' ', false, get_color_code(COLOR_WHITE, COLOR_BLACK));
game_blocks->path = get_block(0x2022, false, get_color_code(COLOR_YELLOW, COLOR_BLACK));
@@ -45,4 +46,4 @@ static inline void set_blocks(struct game_blocks *game_blocks)
{':', "", start_command_prompt, ':'}, \
}
-#endif \ No newline at end of file
+#endif