added bulletcircle (laggy)

This commit is contained in:
Mees Roelofsz
2023-11-30 22:26:39 +01:00
parent e98ce2415d
commit 77272afdc9
2 changed files with 7 additions and 4 deletions

View File

@@ -235,9 +235,9 @@ 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;
}
}