diff options
author | lshprung <lshprung@yahoo.com> | 2020-12-17 16:06:12 -0800 |
---|---|---|
committer | lshprung <lshprung@yahoo.com> | 2020-12-17 16:06:12 -0800 |
commit | bc5885c888f0a4df03a455e1b5c70c2307c676b1 (patch) | |
tree | c8946cf625212048f8ed68c869d326bb5a2ab723 /include/body.h | |
parent | e67207d672cf3164ee392a6834dcd8ed20510d28 (diff) |
Working collision
Diffstat (limited to 'include/body.h')
-rw-r--r-- | include/body.h | 3 |
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); |