summaryrefslogtreecommitdiff
path: root/src/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.c')
-rw-r--r--src/map.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/map.c b/src/map.c
index dc0826d..c31eb66 100644
--- a/src/map.c
+++ b/src/map.c
@@ -70,8 +70,18 @@ draw_outline(int x, int y)
void
map_draw(void)
{
+ LZY_DrawSetColor(BLACK);
for (int y = 0; y < map_height(); y++)
for (int x = 0; x < map_width(); x++)
if (map_get(x, y) == 1)
draw_outline(x, y);
}
+
+void
+map_draw_ui(void)
+{
+ const char *s = (char *)maps[1 + map_id];
+ const int x = (DISPLAY_WIDTH - CHR_WIDTH * strlen(s)) / 2;
+ const int y = (DISPLAY_HEIGHT - CHR_HEIGHT) / 2;
+ LZY_DrawText(x, y, s);
+}