changed bullet speed for waves
This commit is contained in:
@@ -323,7 +323,7 @@ function spawnRandomBullet() {
|
|||||||
let shotWidth = random(0, width);
|
let shotWidth = random(0, width);
|
||||||
shotPosX = shotWidth;
|
shotPosX = shotWidth;
|
||||||
shotPosY = height;
|
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) {
|
if (nextAttack == 2) {
|
||||||
@@ -331,7 +331,7 @@ function spawnRandomBullet() {
|
|||||||
let shotWidth = random(0, width);
|
let shotWidth = random(0, width);
|
||||||
shotPosX = shotWidth;
|
shotPosX = shotWidth;
|
||||||
shotPosY = 0;
|
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) {
|
if (nextAttack == 3) {
|
||||||
@@ -339,7 +339,7 @@ function spawnRandomBullet() {
|
|||||||
let shotHeight = random(0, width);
|
let shotHeight = random(0, width);
|
||||||
shotPosX = 0;
|
shotPosX = 0;
|
||||||
shotPosY = shotHeight;
|
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) {
|
if (nextAttack == 4) {
|
||||||
@@ -347,7 +347,7 @@ function spawnRandomBullet() {
|
|||||||
let shotHeight = random(0, width);
|
let shotHeight = random(0, width);
|
||||||
shotPosX = width;
|
shotPosX = width;
|
||||||
shotPosY = shotHeight;
|
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