added circle to show where player is
This commit is contained in:
@@ -566,6 +566,10 @@ function game() {
|
|||||||
push();
|
push();
|
||||||
fill(0, 255, 255);
|
fill(0, 255, 255);
|
||||||
circle(constrain(playerPosX, 0 + radius, width - radius), constrain(playerPosY, 0 + radius, height - radius), playerSize);
|
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();
|
pop();
|
||||||
if (phases[2] == false || phase[3] == false) {
|
if (phases[2] == false || phase[3] == false) {
|
||||||
bouncing();
|
bouncing();
|
||||||
|
Reference in New Issue
Block a user