From 2fb5c22a54f874a54268e22fd2c8d5b298da4bb1 Mon Sep 17 00:00:00 2001 From: pfych Date: Fri, 23 Aug 2024 17:39:25 +1000 Subject: [PATCH] Correctly render delta --- src/renderLoop.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderLoop.html b/src/renderLoop.html index e7ad491..42ad016 100644 --- a/src/renderLoop.html +++ b/src/renderLoop.html @@ -37,7 +37,7 @@ renderFrameRate(delta); - const moveDistance = 100 / delta; + const moveDistance = 1 * delta; spritePos[0] += moveDistance * xFlip; spritePos[1] += moveDistance * yFlip;