From bc5885c888f0a4df03a455e1b5c70c2307c676b1 Mon Sep 17 00:00:00 2001 From: lshprung Date: Thu, 17 Dec 2020 16:06:12 -0800 Subject: Working collision --- include/body.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/body.h') diff --git a/include/body.h b/include/body.h index cfb6f5a..a1957bc 100644 --- a/include/body.h +++ b/include/body.h @@ -8,7 +8,8 @@ typedef struct snake SNAKE; SNAKE *makeSnake(int startx, int starty, int len); void deleteSnake(SNAKE *sp); -void updateSnake(SNAKE *sp, int dir); +void updateSnake(SNAKE *sp, int dir, int maxx, int maxy, bool *collision); +bool checkSnake(SNAKE *sp, int maxx, int maxy); int getSnakeTailx(SNAKE *sp); int getSnakeTaily(SNAKE *sp); -- cgit