From 6e262115dc576aad05ab383c3d62d1da0e9a082b Mon Sep 17 00:00:00 2001 From: lshprung Date: Fri, 18 Dec 2020 12:23:54 -0800 Subject: Added fruit and scoring functionality --- include/body.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/body.h') 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); -- cgit