added cool box
This commit is contained in:
parent
af579fb850
commit
2805dff95f
3 changed files with 2 additions and 1 deletions
BIN
nsnake
BIN
nsnake
Binary file not shown.
BIN
obj/main.o
BIN
obj/main.o
Binary file not shown.
|
@ -81,7 +81,8 @@ int main(void) {
|
||||||
snake_forward(s, dirn);
|
snake_forward(s, dirn);
|
||||||
score += snake_eat(s, f);
|
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);
|
snake_print(s);
|
||||||
field_print(f);
|
field_print(f);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue