#include "../../include/player_state/run.h" #include "../../include/player.h" #include "../../include/raylib.h" static void player_state_run_update(PlayerState *state, Player *player) { // if (IsKeyPressed(KEY_RIGHT)) // { // state->update = player_state_transition_to_walk_right; // } } void player_state_transition_to_run(PlayerState *state, Player *player) { state->name = "Run"; state->update = player_state_run_update; player->speed = 24.0f; }