summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c20
1 files changed, 12 insertions, 8 deletions
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();