diff options
author | Daniel Jones <admin@danieljon.es> | 2019-03-10 19:02:35 +1030 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2019-03-10 19:02:35 +1030 |
commit | efe6e98b486bc27e4a622afb841e8b702064d870 (patch) | |
tree | 104f4a49e17d6a0b9334a5b4d7b956f4dbf9473d | |
parent | f3346fe1f0152a569c8fbd66a8e51ad2c4e45f1a (diff) | |
download | snake-efe6e98b486bc27e4a622afb841e8b702064d870.tar.gz snake-efe6e98b486bc27e4a622afb841e8b702064d870.zip |
initialise score
-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; |