Codex CLI commited on
Commit
73a1f35
·
1 Parent(s): d6dfcf1

feat(config): adjust player movement parameters for improved control and responsiveness

Browse files
Files changed (1) hide show
  1. src/config.js +6 -6
src/config.js CHANGED
@@ -31,16 +31,16 @@ export const CFG = {
31
  move: {
32
  friction: 5.5, // ground friction (~4-6)
33
  stopSpeed: 6.0, // speed where friction clamps (m/s)
34
- groundAccel: 11.0, // ground acceleration
35
- airAccel: 18.0, // air acceleration (allow redirection)
36
  gravity: 15.0, // matches prior gravity
37
  jumpSpeed: 5.0, // vertical impulse (mirrors jumpVel)
38
- airSpeedCap: 10.0, // optional cap on sideways air accel
39
  // Sliding
40
- slideFriction: 1.2, // lower than ground friction
41
- slideAccel: 10.0,
42
  slideMinSpeed: 6.0, // enter slide when crouch and >= this speed
43
- slideJumpBoost: 1.0, // forward boost on slide-jump (m/s)
44
  // Helpers
45
  jumpBuffer: 0.12, // seconds to buffer jump presses
46
  coyoteTime: 0.12, // late jump after leaving ground
 
31
  move: {
32
  friction: 5.5, // ground friction (~4-6)
33
  stopSpeed: 6.0, // speed where friction clamps (m/s)
34
+ groundAccel: 9.5, // slightly slower to build speed
35
+ airAccel: 12.0, // reduce mid-air drift/control
36
  gravity: 15.0, // matches prior gravity
37
  jumpSpeed: 5.0, // vertical impulse (mirrors jumpVel)
38
+ airSpeedCap: 8.0, // tighter cap to curb air strafing
39
  // Sliding
40
+ slideFriction: 1.6, // a bit less slide drift
41
+ slideAccel: 8.0, // less push while sliding
42
  slideMinSpeed: 6.0, // enter slide when crouch and >= this speed
43
+ slideJumpBoost: 0.85, // tone down slide-jump boost slightly
44
  // Helpers
45
  jumpBuffer: 0.12, // seconds to buffer jump presses
46
  coyoteTime: 0.12, // late jump after leaving ground