diff options
Diffstat (limited to 'src/map.c')
-rw-r--r-- | src/map.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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); +} |