From 0d6fdca8d5f21424353ee88d15506ecb5eb10ea8 Mon Sep 17 00:00:00 2001 From: Mees Roelofsz Date: Fri, 19 Jan 2024 10:56:55 +0100 Subject: [PATCH] added circle to show where player is --- web/game.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/game.js b/web/game.js index 3cc2948..7badb85 100644 --- a/web/game.js +++ b/web/game.js @@ -566,6 +566,10 @@ function game() { push(); fill(0, 255, 255); circle(constrain(playerPosX, 0 + radius, width - radius), constrain(playerPosY, 0 + radius, height - radius), playerSize); + stroke('yellow'); + strokeWeight(1); + noFill(); + circle (playerPosX, playerPosY, playerSize*2); pop(); if (phases[2] == false || phase[3] == false) { bouncing();