summaryrefslogtreecommitdiff
path: root/include/body.h
diff options
context:
space:
mode:
authorlshprung <lshprung@yahoo.com>2020-12-17 16:06:12 -0800
committerlshprung <lshprung@yahoo.com>2020-12-17 16:06:12 -0800
commitbc5885c888f0a4df03a455e1b5c70c2307c676b1 (patch)
treec8946cf625212048f8ed68c869d326bb5a2ab723 /include/body.h
parente67207d672cf3164ee392a6834dcd8ed20510d28 (diff)
Working collision
Diffstat (limited to 'include/body.h')
-rw-r--r--include/body.h3
1 files changed, 2 insertions, 1 deletions
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);