diff options
| author | Schark <jordan@schark.online> | 2026-09-24 00:38:44 -0400 |
|---|---|---|
| committer | Schark <jordan@schark.online> | 2026-09-24 00:38:44 -0400 |
| commit | 651fa5ef62cb9e8e1f47c07cc8d6b3abc4d70cd5 (patch) | |
| tree | f50f9fb96ed129a32ae09d76e8a87d6593c0be03 /platformer/src/config.h | |
| parent | 5d078ec17b27afd159f8b9a8c1298fcac15d695d (diff) | |
| download | gamedev-651fa5ef62cb9e8e1f47c07cc8d6b3abc4d70cd5.tar.gz gamedev-651fa5ef62cb9e8e1f47c07cc8d6b3abc4d70cd5.zip | |
Further camera adjustments, feeling great
Diffstat (limited to '')
| -rw-r--r-- | platformer/src/config.h | 9 |
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) */ |
