#include "../../include/player_state/fall.h" #include "../../include/player.h" #include "../../include/raylib.h" static void player_state_fall_update(PlayerState *state, Player *player) { // if (IsKeyPressed(KEY_RIGHT)) // { // state->update = player_state_transition_to_walk_right; // } } void player_state_transition_to_fall(PlayerState *state, Player *player) { state->name = "Fall"; state->update = player_state_fall_update; player->speed = 0; }