Spaces:
Running
Running
Codex CLI
commited on
Commit
·
73a1f35
1
Parent(s):
d6dfcf1
feat(config): adjust player movement parameters for improved control and responsiveness
Browse files- 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:
|
35 |
-
airAccel:
|
36 |
gravity: 15.0, // matches prior gravity
|
37 |
jumpSpeed: 5.0, // vertical impulse (mirrors jumpVel)
|
38 |
-
airSpeedCap:
|
39 |
// Sliding
|
40 |
-
slideFriction: 1.
|
41 |
-
slideAccel:
|
42 |
slideMinSpeed: 6.0, // enter slide when crouch and >= this speed
|
43 |
-
slideJumpBoost:
|
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
|