summaryrefslogtreecommitdiff
path: root/platformer/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--platformer/src/main.c12
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);
}