From 94791feb3eea64fe5b14aea96ec4d5e0fea974cf Mon Sep 17 00:00:00 2001 From: Justin Oros Date: Thu, 14 May 2026 10:24:38 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20mobile=20walk=20speed=20=E2=80=94=20reduc?= =?UTF-8?q?e=20tick=20interval=20from=2080ms=20to=2030ms=20for=20smoother?= =?UTF-8?q?=20movement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game.js b/game.js index b71eb61..ca4413c 100644 --- a/game.js +++ b/game.js @@ -158,7 +158,7 @@ class Game { ══════════════════════════════════════════════════════════ */ _startWalkLoop() { if (this._walkLoop) return; - this._walkLoop = setInterval(() => this._walkTick(), 80); + this._walkLoop = setInterval(() => this._walkTick(), 30); } _stopWalkLoop() { @@ -183,7 +183,7 @@ class Game { const viewH = world.parentElement.offsetHeight || 300; const worldW = world.offsetWidth || viewW * 4; - const SPEED = 80; /* px per tick */ + const SPEED = 30; /* px per tick */ let dx = 0, dy = 0, dir = ''; if (this._heldKeys.has('right')) { dx = SPEED; dir = 'right'; }