From b3b5c54e4fddb0ff4257cf0a5e5d2af6378b96d2 Mon Sep 17 00:00:00 2001 From: Mees Roelofsz Date: Tue, 12 Dec 2023 13:37:00 +0100 Subject: [PATCH] changed bullet speed for waves --- web/game.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/game.js b/web/game.js index 275a169..99ab557 100644 --- a/web/game.js +++ b/web/game.js @@ -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)); } }