diff options
Diffstat (limited to 'html/rogue/js/config.js')
-rw-r--r-- | html/rogue/js/config.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/html/rogue/js/config.js b/html/rogue/js/config.js index cc1a3dc..efe8cbf 100644 --- a/html/rogue/js/config.js +++ b/html/rogue/js/config.js @@ -47,9 +47,15 @@ const Config = { }, camera: { - FOLLOW_SPEED: 0.1, // Camera smoothing factor - DEADZONE_X: 200, // Horizontal deadzone in pixels - DEADZONE_Y: 150 // Vertical deadzone in pixels + FOLLOW_SPEED: 0.1, + DEADZONE_RATIO_X: { + NARROW: 0.1, + WIDE: 0.2 + }, + DEADZONE_RATIO_Y: 0.2, + MIN_DEADZONE: 30, + MAX_DEADZONE: 200, + NARROW_SCREEN_THRESHOLD: 600 }, ui: { |