diff options
Diffstat (limited to '')
| -rw-r--r-- | platformer/src/config.h | 9 |
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 */ |
