Merge branch 'main' of https://gitlab.fdmci.hva.nl/propedeuse-hbo-ict/onderwijs/2023-2024/out-a-se-ti/blok-2/cuujooceevii61
This commit is contained in:
@@ -240,10 +240,12 @@ function spawnRandomBullet(){
|
||||
shotPosY = 100;
|
||||
angle = 0;
|
||||
// changing the angle of the bullets
|
||||
for (let i = 0; i < 140; i++) {
|
||||
bullets.push(new bullet(playerPosX, playerPosY, radius, shotSpeed, angle, shotPosX, shotPosY, hasMoved));
|
||||
angle += 360 / 50;
|
||||
for (let i = 0; i < 86; i++) {
|
||||
bullets.push(new bullet(0, 100, radius, shotSpeed, shotPosX, shotPosY, hasMoved, angle));
|
||||
angle -= 360 / 3;
|
||||
bulletsspliced = bullets.splice(i);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user