diff options
-rw-r--r-- | snake.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -78,6 +78,7 @@ int main(void) getmaxyx(stdscr, h, w); /* setup snake */ head *snake; + snake->score = 0; snake->x = 0; snake->y = 5; snake->oldx = snake->x; |
index : snake | ||
simple snake game in C using ncurses. | daniel@danieljon.es |
summaryrefslogtreecommitdiff |
-rw-r--r-- | snake.c | 1 |
@@ -78,6 +78,7 @@ int main(void) getmaxyx(stdscr, h, w); /* setup snake */ head *snake; + snake->score = 0; snake->x = 0; snake->y = 5; snake->oldx = snake->x; |