Merge branch 'main' of https://gitlab.fdmci.hva.nl/propedeuse-hbo-ict/onderwijs/2023-2024/out-a-se-ti/blok-2/cuujooceevii61
This commit is contained in:
@@ -266,7 +266,7 @@ function spawnRandomBullet() {
|
||||
if (nextAttack == 1) {
|
||||
for (let i = 0; i < random(3, 10); i++) {
|
||||
let shotWidth = random(0, width);
|
||||
shotPosX = shotWidth
|
||||
shotPosX = shotWidth;
|
||||
shotPosY = height;
|
||||
bullets.push(new bullet(shotWidth, 0, radius, shotSpeed/4, shotPosX, shotPosY, hasMoved, angle));
|
||||
}
|
||||
@@ -274,7 +274,7 @@ function spawnRandomBullet() {
|
||||
if (nextAttack == 2) {
|
||||
for (let i = 0; i < random(3, 10); i++) {
|
||||
let shotWidth = random(0, width);
|
||||
shotPosX = shotWidth
|
||||
shotPosX = shotWidth;
|
||||
shotPosY = 0;
|
||||
bullets.push(new bullet(shotWidth, height, radius, shotSpeed/4, shotPosX, shotPosY, hasMoved, angle));
|
||||
}
|
||||
@@ -282,7 +282,7 @@ function spawnRandomBullet() {
|
||||
if (nextAttack == 3) {
|
||||
for (let i = 0; i < random(3, 10); i++) {
|
||||
let shotHeight = random(0, width);
|
||||
shotPosX = 0
|
||||
shotPosX = 0;
|
||||
shotPosY = shotHeight;
|
||||
bullets.push(new bullet(width, shotHeight, radius, shotSpeed/4, shotPosX, shotPosY, hasMoved, angle));
|
||||
}
|
||||
@@ -290,7 +290,7 @@ function spawnRandomBullet() {
|
||||
if (nextAttack == 3) {
|
||||
for (let i = 0; i < random(3, 10); i++) {
|
||||
let shotHeight = random(0, width);
|
||||
shotPosX = width
|
||||
shotPosX = width;
|
||||
shotPosY = shotHeight;
|
||||
bullets.push(new bullet(0, shotHeight, radius, shotSpeed/4, shotPosX, shotPosY, hasMoved, angle));
|
||||
}
|
||||
|
Reference in New Issue
Block a user