From a527b2b11a7efd7da30098107aa302833fae37c2 Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Fri, 7 Nov 2025 19:54:00 -0500 Subject: box drawing chars for border --- main.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index b95e9cb..7b7243a 100644 --- a/main.c +++ b/main.c @@ -151,20 +151,22 @@ void brd_draw(void) { u32 right = left + WIDTH * 2; u32 bottom = top + HEIGHT; for (u32 y = 0; y < HEIGHT; y++) { - vui_chr(left - 1, top + y, u'❘'); - vui_chr(right + 1, top + y, u'❘'); + vui_chr(left - 1, top + y, u'║'); + vui_chr(right + 1, top + y, u'║'); for (u32 x = 0; x < WIDTH; x++) { Tile t = board[y][x]; vui_chra(left + 2 * x, top + y, tile_chr[t][0], tile_attr[t][0]); vui_chra(left + 2 * x + 1, top + y, tile_chr[t][1], tile_attr[t][1]); - vui_puts(left + 2 * x, top - 1, "──"); - vui_puts(left + 2 * x, bottom, "──"); + vui_puts(left + 2 * x, top - 1, "══"); + vui_puts(left + 2 * x, bottom, "══"); } } - vui_chr(left - 1, top - 1, u'┌'); - vui_chr(right + 1, top - 1, u'┐'); - vui_chr(left - 1, bottom, u'└'); - vui_chr(right + 1, bottom, u'┘'); + vui_chr(left - 1, top - 1, u'╔'); + vui_chr(right + 1, top - 1, u'╗'); + vui_chr(left - 1, bottom, u'╚'); + vui_chr(right + 1, bottom, u'╝'); + vui_chr(right, bottom, u'═'); + vui_chr(right, top - 1, u'═'); /* u32 x = 0; u32 y = 1; @@ -251,6 +253,8 @@ void snk_chg_dir(Snake *s, Dir d) { } } +/* game */ + int main(void) { srand(time(NULL)); vui_init(); -- cgit v1.2.3