From 10a4aee3e0a0c6009b8f5205dec441f3ca0c4a7c Mon Sep 17 00:00:00 2001 From: Mees Roelofsz Date: Mon, 4 Dec 2023 23:11:34 +0100 Subject: [PATCH] made half of the balls turn the other way --- web/game.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/game.js b/web/game.js index 986aa81..04e46f9 100644 --- a/web/game.js +++ b/web/game.js @@ -164,9 +164,9 @@ function draw() { y2 = map(cosY, -1, 1, playerPosY - 200, playerPosY + 200); x3 = map(-sinX, -1, 1, playerPosX - 200, playerPosX + 200); y3 = map(-cosY, -1, 1, playerPosY - 200, playerPosY + 200); - x4 = map(sinX, -1, 1, playerPosX - 100, playerPosX + 100); + x4 = map(-sinX, -1, 1, playerPosX - 100, playerPosX + 100); y4 = map(cosY, -1, 1, playerPosY - 100, playerPosY + 100); - x5 = map(-sinX, -1, 1, playerPosX - 100, playerPosX + 100); + x5 = map(sinX, -1, 1, playerPosX - 100, playerPosX + 100); y5 = map(-cosY, -1, 1, playerPosY - 100, playerPosY + 100); circle(x3, y3, 50); circle(x4, y4, 50);