Remove unused function
This commit is contained in:
parent
6182a2db85
commit
d049ae7933
19
player.c
19
player.c
@ -11,25 +11,6 @@
|
|||||||
#define SPRITE_WIDTH 100
|
#define SPRITE_WIDTH 100
|
||||||
#define SPRITE_HEIGHT 64
|
#define SPRITE_HEIGHT 64
|
||||||
|
|
||||||
void print_state (Player *player) {
|
|
||||||
switch(player->current_state) {
|
|
||||||
case PLAYER_STATE_IDLE:
|
|
||||||
printf("IDLE\n");
|
|
||||||
break;
|
|
||||||
case PLAYER_STATE_WALK:
|
|
||||||
printf("WALK\n");
|
|
||||||
break;
|
|
||||||
case PLAYER_STATE_DASH:
|
|
||||||
printf("DASH\n");
|
|
||||||
break;
|
|
||||||
case PLAYER_STATE_JUMP:
|
|
||||||
printf("JUMP\n");
|
|
||||||
break;
|
|
||||||
case PLAYER_STATE_FALL:
|
|
||||||
printf("FALL\n");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
void get_player_controls(Player *player);
|
void get_player_controls(Player *player);
|
||||||
State *update_state (Player *player, uint32_t state);
|
State *update_state (Player *player, uint32_t state);
|
||||||
State *idle_state (StateMachine *sm, Player *player);
|
State *idle_state (StateMachine *sm, Player *player);
|
||||||
|
Loading…
Reference in New Issue
Block a user