added cool box

This commit is contained in:
Noah Swerhun 2021-09-18 20:14:35 -05:00
parent af579fb850
commit 2805dff95f
3 changed files with 2 additions and 1 deletions

BIN
nsnake

Binary file not shown.

Binary file not shown.

View file

@ -81,7 +81,8 @@ int main(void) {
snake_forward(s, dirn);
score += snake_eat(s, f);
mvprintw(getmaxy(stdscr) - 1, 0, "score: %d", score);
box(stdscr, 0, 0);
mvprintw(getmaxy(stdscr) - 2, 1, "score: %d", score);
snake_print(s);
field_print(f);