changed bullet speed for waves
This commit is contained in:
@@ -323,7 +323,7 @@ function spawnRandomBullet() {
|
||||
let shotWidth = random(0, width);
|
||||
shotPosX = shotWidth;
|
||||
shotPosY = height;
|
||||
bullets.push(new bullet(shotWidth, 0, radius, shotSpeed / 4, shotPosX, shotPosY, hasMoved, angle));
|
||||
bullets.push(new bullet(shotWidth, 0, radius, shotSpeed / 5, shotPosX, shotPosY, hasMoved, angle));
|
||||
}
|
||||
}
|
||||
if (nextAttack == 2) {
|
||||
@@ -331,7 +331,7 @@ function spawnRandomBullet() {
|
||||
let shotWidth = random(0, width);
|
||||
shotPosX = shotWidth;
|
||||
shotPosY = 0;
|
||||
bullets.push(new bullet(shotWidth, height, radius, shotSpeed / 4, shotPosX, shotPosY, hasMoved, angle));
|
||||
bullets.push(new bullet(shotWidth, height, radius, shotSpeed / 5, shotPosX, shotPosY, hasMoved, angle));
|
||||
}
|
||||
}
|
||||
if (nextAttack == 3) {
|
||||
@@ -339,7 +339,7 @@ function spawnRandomBullet() {
|
||||
let shotHeight = random(0, width);
|
||||
shotPosX = 0;
|
||||
shotPosY = shotHeight;
|
||||
bullets.push(new bullet(width, shotHeight, radius, shotSpeed / 4, shotPosX, shotPosY, hasMoved, angle));
|
||||
bullets.push(new bullet(width, shotHeight, radius, shotSpeed / 5, shotPosX, shotPosY, hasMoved, angle));
|
||||
}
|
||||
}
|
||||
if (nextAttack == 4) {
|
||||
@@ -347,7 +347,7 @@ function spawnRandomBullet() {
|
||||
let shotHeight = random(0, width);
|
||||
shotPosX = width;
|
||||
shotPosY = shotHeight;
|
||||
bullets.push(new bullet(0, shotHeight, radius, shotSpeed / 4, shotPosX, shotPosY, hasMoved, angle));
|
||||
bullets.push(new bullet(0, shotHeight, radius, shotSpeed / 5, shotPosX, shotPosY, hasMoved, angle));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user