Skip to content

Commit

Permalink
Update index.htm
Browse files Browse the repository at this point in the history
  • Loading branch information
chompypotato authored Aug 28, 2024
1 parent 9139af2 commit 179bf75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
var myScore;

function startGame() {
myGamePiece = new component(30, 30, "red", 10, 120);
myGamePiece = new component(30, 30, "green", 10, 120);
myGamePiece.gravity = 0.05;
myScore = new component("30px", "Consolas", "black", 280, 40, "text");
myGameArea.start();
Expand Down Expand Up @@ -107,8 +107,8 @@
minGap = 50;
maxGap = 200;
gap = Math.floor(Math.random()*(maxGap-minGap+1)+minGap);
myObstacles.push(new component(10, height, "green", x, 0));
myObstacles.push(new component(10, x - height - gap, "green", x, height + gap));
myObstacles.push(new component(10, height, "red", x, 0));
myObstacles.push(new component(10, x - height - gap, "red", x, height + gap));
}
for (i = 0; i < myObstacles.length; i += 1) {
myObstacles[i].x += -1;
Expand Down

0 comments on commit 179bf75

Please sign in to comment.