diff options
| author | Schark <jordan@schark.online> | 2026-09-29 18:46:53 -0400 |
|---|---|---|
| committer | Schark <jordan@schark.online> | 2026-09-29 18:46:53 -0400 |
| commit | 923b5928eeafd9bf969b95c4d49699d280b1ce0f (patch) | |
| tree | 0210db826b4cbdfc91704dc6655652b96cbd36b4 /platformer/src/main.c | |
| parent | 25992eb0baa1be5b49e8732e4b63734cdafe3b80 (diff) | |
| download | gamedev-923b5928eeafd9bf969b95c4d49699d280b1ce0f.tar.gz gamedev-923b5928eeafd9bf969b95c4d49699d280b1ce0f.zip | |
Double jump foundation
Diffstat (limited to 'platformer/src/main.c')
| -rw-r--r-- | platformer/src/main.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/platformer/src/main.c b/platformer/src/main.c index 0435737..61972cc 100644 --- a/platformer/src/main.c +++ b/platformer/src/main.c @@ -61,9 +61,10 @@ * * - Debug readout for tuning (a few times per second, not every frame): * window_set_title() with something like - * "platformer | RUN | speed 7.42 m/s | y 1.83 | pad" - * using player_state_name(), forward_speed, body.pos.y and - * input.using_gamepad. This is our "HUD" until text rendering exists. + * "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. * * - Shutdown in reverse order: render_shutdown() -> window_shutdown(). * @@ -98,12 +99,13 @@ 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", + snprintf(title, sizeof title, "%s | %s | speed %.2f m/s | y %.2f | %s%s", WINDOW_TITLE, player_state_name(player->state), player->forward_speed, player->body.pos.y, - input->using_gamepad ? "pad" : "keyboard"); + input->using_gamepad ? "pad" : "keyboard", + player->heightened_movement ? " | heightened" : ""); window_set_title(title); } |
