From 70bc9f14d5f4a13e823a9bf2707ca1ef25f4d6a6 Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 24 Nov 2023 14:19:29 +0100 Subject: [PATCH] fixed Y variable --- web/game.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/game.js b/web/game.js index 4dd7d32..da97279 100644 --- a/web/game.js +++ b/web/game.js @@ -113,9 +113,9 @@ async function Movementloop() { if (booleanArray[3]) { cirX -= speed;} if (booleanArray[2]) { - cirY -= speed;} - if (booleanArray[0]) { cirY += speed;} + if (booleanArray[0]) { + cirY -= speed;} } function object_collision() {