diff --git a/include/player.h b/include/player.h index 9fddf0a..0d6861d 100644 --- a/include/player.h +++ b/include/player.h @@ -1,3 +1,4 @@ +enum Direction; void jump_test(char *jump_pressed, char *jump_buffer, unsigned int *jump_hold, char enable_up_key); void set_start_pos(int *start_x, int *start_y, int x, int y); diff --git a/src/player.c b/src/player.c index 7f6538a..ea48d27 100644 --- a/src/player.c +++ b/src/player.c @@ -1,6 +1,14 @@ #include #include "player.h" +enum Direction +{ + up, + down, + left, + right +}; + void jump_test(char *jump_pressed, char *jump_buffer, unsigned int *jump_hold, char enable_up_key) {