summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorlshprung <lshprung@yahoo.com>2020-12-18 12:23:54 -0800
committerlshprung <lshprung@yahoo.com>2020-12-18 12:23:54 -0800
commit6e262115dc576aad05ab383c3d62d1da0e9a082b (patch)
treec69eaec5e7322e4341b42e344657e6df4d1d0d13 /include
parentbc5885c888f0a4df03a455e1b5c70c2307c676b1 (diff)
Added fruit and scoring functionality
Diffstat (limited to 'include')
-rw-r--r--include/body.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/body.h b/include/body.h
index a1957bc..29241bf 100644
--- a/include/body.h
+++ b/include/body.h
@@ -8,7 +8,7 @@ typedef struct snake SNAKE;
SNAKE *makeSnake(int startx, int starty, int len);
void deleteSnake(SNAKE *sp);
-void updateSnake(SNAKE *sp, int dir, int maxx, int maxy, bool *collision);
+void updateSnake(SNAKE *sp, int dir, int maxx, int maxy, bool *collision, int *fruit_loc, bool *fruit, int *score);
bool checkSnake(SNAKE *sp, int maxx, int maxy);
int getSnakeTailx(SNAKE *sp);