diff options
author | lshprung <lshprung@yahoo.com> | 2020-12-17 14:26:34 -0800 |
---|---|---|
committer | lshprung <lshprung@yahoo.com> | 2020-12-17 14:26:34 -0800 |
commit | 9d05943cb413d4cb710f920b5875430f00496ab9 (patch) | |
tree | 538d86ef9f3bf7614493cb7be189f4e7d7ee94f3 /include/body.h | |
parent | 49d7a088a0768fdbd22624f28d4350469b8da421 (diff) |
Working updateScreen function
Diffstat (limited to 'include/body.h')
-rw-r--r-- | include/body.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/body.h b/include/body.h new file mode 100644 index 0000000..cfb6f5a --- /dev/null +++ b/include/body.h @@ -0,0 +1,18 @@ +#ifndef BODY_H +#define BODY_H + +typedef struct node NODE; + +typedef struct snake SNAKE; + +SNAKE *makeSnake(int startx, int starty, int len); +void deleteSnake(SNAKE *sp); + +void updateSnake(SNAKE *sp, int dir); + +int getSnakeTailx(SNAKE *sp); +int getSnakeTaily(SNAKE *sp); +int getSnakeHeadx(SNAKE *sp); +int getSnakeHeady(SNAKE *sp); + +#endif |