deleted unnecessary spaces
This commit is contained in:
10
web/game.js
10
web/game.js
@@ -52,7 +52,6 @@ function setup() {
|
||||
noStroke();
|
||||
}
|
||||
|
||||
|
||||
function score() {
|
||||
time += 1 / framerate;
|
||||
}
|
||||
@@ -173,7 +172,6 @@ function draw() {
|
||||
textAlign(LEFT);
|
||||
text(int(time), 10, 20);
|
||||
|
||||
|
||||
randomAttackPattern()
|
||||
|
||||
bullets.forEach(myBullet => {
|
||||
@@ -188,7 +186,6 @@ function draw() {
|
||||
});
|
||||
//blijf de bullet tekenen zolang hit false is
|
||||
bullets = bullets.filter(bullet => !bullet.hit);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -227,7 +224,6 @@ function spawnRandomBullet() {
|
||||
shotPosX = 1000;
|
||||
shotPosY = random(0, 600);
|
||||
bullets.push(new bullet(playerPosX, playerPosY, radius, shotSpeed, shotPosX, shotPosY, hasMoved, 0));
|
||||
|
||||
}
|
||||
}
|
||||
if (patern == 2) {
|
||||
@@ -243,11 +239,10 @@ function spawnRandomBullet() {
|
||||
for (let i = 0; i < 86; i++) {
|
||||
setTimeout(function() {
|
||||
bullets.push(new bullet(0, 100, radius, shotSpeed/4, shotPosX, shotPosY, hasMoved, angle));
|
||||
angle -= 360 / 3;
|
||||
angle -= 360 / 1;
|
||||
}, i * 100);
|
||||
}
|
||||
angle = 0;
|
||||
|
||||
}
|
||||
if (patern == 4) {
|
||||
shotPosX = 500;
|
||||
@@ -259,8 +254,5 @@ function spawnRandomBullet() {
|
||||
angle -= 360 / 3;
|
||||
}
|
||||
angle = 0;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user