feat(config): add physics and window platforming parameters
This commit is contained in:
@@ -137,6 +137,12 @@ class Config:
|
||||
sound_enabled: bool = True
|
||||
cooldown_after_close_sec: float = 4.0
|
||||
|
||||
# Physics & Platforming parameters
|
||||
gravity_px_s2: float = 1600.0 # Gravitational acceleration (px/s^2)
|
||||
jump_velocity_px_s: float = 650.0 # Vertical launch velocity for jumps (px/s)
|
||||
platform_jump_chance: float = 0.20 # Autonomous chance to jump onto a window platform
|
||||
enable_window_platforms: bool = True # Treat open windows as walkable ledges
|
||||
|
||||
@property
|
||||
def cat_height(self) -> int:
|
||||
"""Calculates cat height proportionally based on aspect ratio 121.2 / 92.4."""
|
||||
|
||||
Reference in New Issue
Block a user