about summary refs log tree commit diff stats
path: root/html/rogue/js/camera.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/rogue/js/camera.js')
-rw-r--r--html/rogue/js/camera.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/html/rogue/js/camera.js b/html/rogue/js/camera.js
index e7b2475..a5aae47 100644
--- a/html/rogue/js/camera.js
+++ b/html/rogue/js/camera.js
@@ -13,7 +13,7 @@ const Camera = {
         const targetX = targetPixel.x - state.canvas.width / 2;
         const targetY = targetPixel.y - state.canvas.height / 2;
         
-        this.x += (targetX - this.x) * 0.1;
-        this.y += (targetY - this.y) * 0.1;
+        this.x += (targetX - this.x) * Config.camera.FOLLOW_SPEED;
+        this.y += (targetY - this.y) * Config.camera.FOLLOW_SPEED;
     }
 }; 
\ No newline at end of file