diff options
Diffstat (limited to '')
| -rw-r--r-- | platformer/src/main.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/platformer/src/main.c b/platformer/src/main.c index 61972cc..ce02b85 100644 --- a/platformer/src/main.c +++ b/platformer/src/main.c @@ -63,8 +63,8 @@ * window_set_title() with something like * "platformer | RUN | speed 7.42 m/s | y 1.83 | pad | heightened" * using player_state_name(), forward_speed, body.pos.y, - * input.using_gamepad, and "| heightened" only while - * player.heightened_movement is on. This is our "HUD" until text rendering exists. + * input.using_gamepad, and "| heightened" / "| retreating" only while + * player.heightened_movement / player.retreating_movement is on. This is our "HUD" until text rendering exists. * * - Shutdown in reverse order: render_shutdown() -> window_shutdown(). * @@ -99,13 +99,14 @@ static void update_debug_title(const Player *player, const Input *input) { char title[128]; - snprintf(title, sizeof title, "%s | %s | speed %.2f m/s | y %.2f | %s%s", + snprintf(title, sizeof title, "%s | %s | speed %.2f m/s | y %.2f | %s%s%s", WINDOW_TITLE, player_state_name(player->state), player->forward_speed, player->body.pos.y, input->using_gamepad ? "pad" : "keyboard", - player->heightened_movement ? " | heightened" : ""); + player->heightened_movement ? " | heightened" : "", + player->retreating_movement ? " | retreating" : ""); window_set_title(title); } |
