summaryrefslogtreecommitdiff
path: root/platformer/game_feel.md
diff options
context:
space:
mode:
authorSchark <jordan@schark.online>2026-09-29 22:28:37 -0400
committerSchark <jordan@schark.online>2026-09-29 22:28:37 -0400
commitfdc8c951fc72d9dc4c8faa58a21b2b9de0599698 (patch)
treeedd9934a43429508acb9ec37da71eb172dc788e9 /platformer/game_feel.md
parentadb6a882870464490a8026aed1f66b21b0e72477 (diff)
downloadgamedev-fdc8c951fc72d9dc4c8faa58a21b2b9de0599698.tar.gz
gamedev-fdc8c951fc72d9dc4c8faa58a21b2b9de0599698.zip
Implemented no-panning zones
Diffstat (limited to '')
-rw-r--r--platformer/game_feel.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/platformer/game_feel.md b/platformer/game_feel.md
index 7cd1217..602ded0 100644
--- a/platformer/game_feel.md
+++ b/platformer/game_feel.md
@@ -213,6 +213,13 @@ keep this model or you'll lose several properties below at once.
the player's motion, on whichever side it's already on (`CAMERA_SWING_SPEED` 0.5 rad/s, scaled by how
sideways the run is). It never snaps fully behind the player on its own; only the recenter button
does that.
+- **Locked-pan zones** (`ZONE_LOCKED_PAN`, non-solid boxes from `level_build_zones`, drawn as sparse
+ black dashes on see-through faces). While the middle of the player's body is inside one, the camera
+ **doesn't swing behind them** on its own. The stick, recenter, framing/lead room and auto-tilt all
+ still work. **One box** covers the whole cliff and its climb band (out about 20 m past the south and east
+ faces, taking in some of the river too) from the ground to exactly the 55 m top, so on the summit
+ the swing resumes. Crossing platforms one tier below the top (53.5 m) are still inside it. Measured: a 3 s sideways run
+ swings the camera 1.05 rad normally, and 0.00 inside a zone.
- **Auto-tilt.** After **2 s** with no manual camera input (right stick, or a recenter click), pitch
eases to **15°**. The motion speeds up gently, cruises at a slow cap, and brakes along the curve
`sqrt(2 * accel * remaining)` so it settles exactly on target without overshoot. A pitch set by