summaryrefslogtreecommitdiff
path: root/platformer/src/config.h
diff options
context:
space:
mode:
authorSchark <jordan@schark.online>2026-09-29 19:20:15 -0400
committerSchark <jordan@schark.online>2026-09-29 19:20:15 -0400
commit5f04f3ae87fb307e055d39e81f7c0c841e8a9af8 (patch)
tree9842c6c7106b0afc36eb9f7a09c5db4166b0f412 /platformer/src/config.h
parent0b99c49ef6ff75e3adfa08cd03dc6bc4b1602742 (diff)
downloadgamedev-5f04f3ae87fb307e055d39e81f7c0c841e8a9af8.tar.gz
gamedev-5f04f3ae87fb307e055d39e81f7c0c841e8a9af8.zip
Slightly alter first jump top speed
Diffstat (limited to 'platformer/src/config.h')
-rw-r--r--platformer/src/config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/platformer/src/config.h b/platformer/src/config.h
index f496ee1..23d85ec 100644
--- a/platformer/src/config.h
+++ b/platformer/src/config.h
@@ -49,6 +49,12 @@
* PLAYER_AIR_ACCEL 9.0f m/s^2 speeding up toward target speed in air
* PLAYER_JUMP_VELOCITY 14.0f m/s upward at jump start (~2.4 m apex)
* PLAYER_JUMP_CUT 0.50f vel.y multiplier when A released while rising
+ * PLAYER_JUMP_MAX_SPEED 7.0f m/s top horizontal speed during a normal
+ * jump (a little past the run speed)
+ * PLAYER_JUMP_BOOST_ACCEL 1.5f m/s^2 how slowly speed builds past the run
+ * speed in a normal jump (~7 m/s by landing)
+ * PLAYER_OVERSPEED_DECEL 2.0f m/s^2 how slowly speed above the run speed
+ * eases back down on the ground
* PLAYER_SECOND_JUMP_VELOCITY 18.41f m/s upward at second-jump start (1.75x
* the first jump's height, ~4.1 m apex)
* PLAYER_SECOND_JUMP_WINDOW 0.2f s after landing a jump that the second
@@ -169,6 +175,9 @@
#define PLAYER_AIR_ACCEL 9.0f /* m/s^2 toward target speed in air; higher = more steerable jumps */
#define PLAYER_JUMP_VELOCITY 14.0f /* m/s upward at jump start; higher = taller jumps (~2.4 m apex at 14) */
#define PLAYER_JUMP_CUT 0.50f /* vel.y multiplier on early A release; lower = shorter taps */
+#define PLAYER_JUMP_MAX_SPEED 7.0f /* m/s top horizontal speed in a normal jump; higher = bigger reward for jumping at full run */
+#define PLAYER_JUMP_BOOST_ACCEL 1.5f /* m/s^2 build past run speed in a normal jump; higher = reaches PLAYER_JUMP_MAX_SPEED sooner */
+#define PLAYER_OVERSPEED_DECEL 2.0f /* m/s^2 ease back down to run speed after landing (stick held); lower = keeps the extra speed longer */
#define PLAYER_SECOND_JUMP_VELOCITY 18.41f /* m/s upward for the second jump; tuned to 1.75x the first jump's height (4.08 m at 60 Hz) */
#define PLAYER_SECOND_JUMP_WINDOW 0.2f /* s after landing a normal or retreat jump that A gives the second jump; higher = more forgiving timing */
#define PLAYER_SECOND_JUMP_MAX_SPEED 5.0f /* m/s top horizontal speed until the second jump lands; lower = more vertical, less distance */