format and changed colors to green
This commit is contained in:
10
web/game.js
10
web/game.js
@@ -660,6 +660,10 @@ function game() {
|
|||||||
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);
|
||||||
pop();
|
pop();
|
||||||
movementCheck();
|
movementCheck();
|
||||||
|
|
||||||
|
|
||||||
|
push();
|
||||||
|
fill(0, 255, 0);
|
||||||
if (phases[2] == false || phase[3] == false) {
|
if (phases[2] == false || phase[3] == false) {
|
||||||
bouncing();
|
bouncing();
|
||||||
} else if (phases[2] = true) {
|
} else if (phases[2] = true) {
|
||||||
@@ -669,10 +673,6 @@ function game() {
|
|||||||
bossPosX = width / 2;
|
bossPosX = width / 2;
|
||||||
bossPosY = height / 6;
|
bossPosY = height / 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
push();
|
|
||||||
fill(255, 165, 0)
|
|
||||||
|
|
||||||
pop();
|
pop();
|
||||||
if (hasMoved == true) {
|
if (hasMoved == true) {
|
||||||
push();
|
push();
|
||||||
@@ -712,7 +712,7 @@ function game() {
|
|||||||
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);
|
y5 = map(-cosY, -1, 1, playerPosY - 100, playerPosY + 100);
|
||||||
push();
|
push();
|
||||||
fill(255, 165, 0)
|
fill(0, 255, 0);
|
||||||
circle(x3, y3, 50);
|
circle(x3, y3, 50);
|
||||||
circle(x4, y4, 50);
|
circle(x4, y4, 50);
|
||||||
circle(x5, y5, 50);
|
circle(x5, y5, 50);
|
||||||
|
Reference in New Issue
Block a user