feat(config): add physics and window platforming parameters

This commit is contained in:
2026-09-08 23:40:33 +02:00
parent a969c91c28
commit 71fe013c80
+6
View File
@@ -137,6 +137,12 @@ class Config:
sound_enabled: bool = True sound_enabled: bool = True
cooldown_after_close_sec: float = 4.0 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 @property
def cat_height(self) -> int: def cat_height(self) -> int:
"""Calculates cat height proportionally based on aspect ratio 121.2 / 92.4.""" """Calculates cat height proportionally based on aspect ratio 121.2 / 92.4."""