added circle to show where player is

This commit is contained in:
Mees Roelofsz
2024-01-19 10:56:55 +01:00
parent cd34a1bf90
commit 0d6fdca8d5

View File

@@ -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();