summaryrefslogtreecommitdiff
path: root/snake.c
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2019-03-10 19:02:35 +1030
committerDaniel Jones <admin@danieljon.es>2019-03-10 19:02:35 +1030
commitefe6e98b486bc27e4a622afb841e8b702064d870 (patch)
tree104f4a49e17d6a0b9334a5b4d7b956f4dbf9473d /snake.c
parentf3346fe1f0152a569c8fbd66a8e51ad2c4e45f1a (diff)
downloadsnake-efe6e98b486bc27e4a622afb841e8b702064d870.tar.gz
snake-efe6e98b486bc27e4a622afb841e8b702064d870.zip
initialise score
Diffstat (limited to 'snake.c')
-rw-r--r--snake.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/snake.c b/snake.c
index 0060f64..92cc6dd 100644
--- a/snake.c
+++ b/snake.c
@@ -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;