diff options
| author | Schark <jordan@schark.online> | 2026-09-29 19:14:39 -0400 |
|---|---|---|
| committer | Schark <jordan@schark.online> | 2026-09-29 19:14:39 -0400 |
| commit | 0b99c49ef6ff75e3adfa08cd03dc6bc4b1602742 (patch) | |
| tree | e09a815472001b9097a2bdea07ef63994aa45cd9 /platformer/src/main.c | |
| parent | 923b5928eeafd9bf969b95c4d49699d280b1ce0f (diff) | |
| download | gamedev-0b99c49ef6ff75e3adfa08cd03dc6bc4b1602742.tar.gz gamedev-0b99c49ef6ff75e3adfa08cd03dc6bc4b1602742.zip | |
Flip jump looking amazing
Diffstat (limited to 'platformer/src/main.c')
| -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); } |
