summaryrefslogtreecommitdiff
path: root/platformer/game_feel.md
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/game_feel.md
parent0b99c49ef6ff75e3adfa08cd03dc6bc4b1602742 (diff)
downloadgamedev-5f04f3ae87fb307e055d39e81f7c0c841e8a9af8.tar.gz
gamedev-5f04f3ae87fb307e055d39e81f7c0c841e8a9af8.zip
Slightly alter first jump top speed
Diffstat (limited to 'platformer/game_feel.md')
-rw-r--r--platformer/game_feel.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/platformer/game_feel.md b/platformer/game_feel.md
index e6862a8..6fc4a2e 100644
--- a/platformer/game_feel.md
+++ b/platformer/game_feel.md
@@ -68,6 +68,16 @@ and eased, not snappier.
is the continuous-physics figure) and a tap gives about 0.72 m. Level geometry is sized against 2.33 m.
- **A jump pressed on the landing tick is never lost.** The FALL state hands off to the ground
logic on the same tick it detects landing.
+- **A normal jump rewards a full run with a little extra speed.** In a normal jump the top speed is
+ `PLAYER_JUMP_MAX_SPEED` (7 m/s). Up to run speed (6 m/s × stick) the air accelerates as usual; past
+ it, only at `PLAYER_JUMP_BOOST_ACCEL` (1.5 m/s²), so a full jump from a full run builds evenly:
+ 6.25 / 6.50 / 6.75 / 7.00 m/s at 0.17 / 0.33 / 0.50 / 0.67 s, landing at 6.97. A short hop lands at
+ about 6.5, and a standing jump only reaches 6. After landing with the stick held, the extra fades at
+ `PLAYER_OVERSPEED_DECEL` (2 m/s²): back to 6 m/s in 29 ticks (0.48 s), **never in one step**.
+ Releasing the stick still uses normal friction (7 → 0 in 0.62 s). Knock-on effects: a skid right
+ after landing starts from ~7 m/s (a longer slide), and a second jump bleeds 7 → 5 in 0.57 s.
+ Hopping again just after the 0.2 s window closes keeps you at about 6.5–7 m/s indefinitely (a
+ bunny hop). That's a speed tech we haven't decided on yet.
- **The second jump (SM64's double jump).** Landing any first jump (hop or full) or a retreat jump
turns on `heightened_movement` for `PLAYER_SECOND_JUMP_WINDOW` (0.2 s, 12 ticks counting the landing tick).
Pressing A while it's on launches at `PLAYER_SECOND_JUMP_VELOCITY` (18.41 m/s): a full second jump
@@ -264,6 +274,7 @@ New automatic camera behaviors should follow the same approach: slow, eased, and
| Second jump height | 2× (19.66 m/s) → 1.75× (18.41 m/s), sets `heightened_movement` | 18.41 m/s |
| Second jump window | 0.5 s → 0.3 s → 0.2 s after landing | 0.2 s |
| Second jump from | normal jump landings → also retreat jump landings | both |
+| Normal jump top speed | 6 m/s (run speed) → 7 m/s, built at 1.5 m/s², eased back at 2 m/s² after landing | 7 m/s |
| Second jump top speed | 6 m/s (same as running) → 4 → 5 m/s until it lands (4 felt a tad harsh) | 5 m/s |
| Second jump slowdown | air accel 9 m/s² (0.25 s, "wall of syrup") → own rate 3.5 m/s² (0.60 s) | 3.5 m/s² |
| Skid | none (full-speed U-turn) → 18 m/s² even braking, turn at the end (0.33 s) → face the stick at once, glide-then-plant curve (power 2) | 0.5 s |