heb angle toegevoegd aan basicbullets+ raar patern
This commit is contained in:
@@ -235,10 +235,9 @@ function spawnRandomBullet(){
|
||||
shotPosY = 100;
|
||||
angle = 0;
|
||||
// changing the angle of the bullets
|
||||
for (let i = 0; i < 180; i++) {
|
||||
let angleChange = map(i, 0, 50, 0, 360); // Example: linear change
|
||||
bullets.push(new bullet(0, angle + angleChange, radius, shotSpeed, shotPosX, shotPosY, hasMoved));
|
||||
// angle += 360 / 50;
|
||||
for (let i = 0; i < 140; i++) {
|
||||
bullets.push(new bullet(playerPosX, playerPosY, radius, shotSpeed, angle, shotPosX, shotPosY, hasMoved));
|
||||
angle += 360 / 50;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user