summaryrefslogtreecommitdiff
path: root/platformer/src/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'platformer/src/config.h')
-rw-r--r--platformer/src/config.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/platformer/src/config.h b/platformer/src/config.h
index b615c4c..c71ae35 100644
--- a/platformer/src/config.h
+++ b/platformer/src/config.h
@@ -61,8 +61,10 @@
* CAMERA_PITCH_SPEED 1.5f rad/s at full right-stick tilt
* CAMERA_FOLLOW_RATE 8.0f 1/s; how fast the camera's DISTANCE catches up
* when the player runs toward/away from it
- * CAMERA_ZONE_INSET 0.05f fraction of the window the resting zone sits
- * inside the thirds lines
+ * CAMERA_ZONE_INSET 0.05f fraction of the window between the resting
+ * zone and the running bound, on every side
+ * CAMERA_ZONE_TOP 0.50f window fraction (0 = bottom) of the resting
+ * zone's top edge; lower = more view ahead
* CAMERA_SETTLE_RATE 3.0f 1/s; how fast the camera re-frames a player
* who stopped outside the resting zone
* CAMERA_RECENTER_RATE 6.0f 1/s; how fast the recenter button swings
@@ -134,7 +136,8 @@
#define CAMERA_YAW_SPEED 2.5f /* rad/s orbit at full right-stick tilt; higher = faster spin */
#define CAMERA_PITCH_SPEED 1.5f /* rad/s tilt at full right-stick tilt */
#define CAMERA_FOLLOW_RATE 8.0f /* 1/s; how fast the distance catches up when running toward/away; lower = more lag */
-#define CAMERA_ZONE_INSET 0.05f /* window fraction the resting zone sits inside the thirds lines; higher = tighter zone */
+#define CAMERA_ZONE_INSET 0.05f /* window fraction between resting zone and running bound; higher = tighter zone */
+#define CAMERA_ZONE_TOP 0.50f /* resting zone's top edge (0 = bottom, 1 = top); lower = more view ahead of the player */
#define CAMERA_SETTLE_RATE 3.0f /* 1/s; re-framing after stopping outside the zone; lower = lazier, more cinematic */
#define CAMERA_RECENTER_RATE 6.0f /* 1/s; how fast recenter swings behind the player and centers them */
#define CAMERA_MIN_HEIGHT 0.5f /* m; lowest the eye may sit above the player's feet (keeps it out of the floor) */