Spaces:
Running
Running
cutechicken
commited on
Update index.html
Browse files- index.html +8 -10
index.html
CHANGED
@@ -514,13 +514,13 @@
|
|
514 |
sound.play();
|
515 |
|
516 |
// ๋ฐ์ฌ ์ดํํธ ์ถ๊ฐ
|
517 |
-
|
518 |
this.x + Math.cos(this.angle) * 30,
|
519 |
this.y + Math.sin(this.angle) * 30,
|
520 |
500,
|
521 |
'fire',
|
522 |
this.angle,
|
523 |
-
this
|
524 |
));
|
525 |
|
526 |
bullets.push({
|
@@ -604,16 +604,15 @@ function initRound() {
|
|
604 |
supportUnits = [];
|
605 |
lastSupportSpawn = 0;
|
606 |
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
newBackgroundImg.onload = () => {
|
611 |
-
backgroundImg.src = 'city2.png';
|
612 |
-
};
|
613 |
bgm.pause();
|
614 |
bgm.src = 'BGM3.ogg';
|
615 |
bgm.play();
|
616 |
-
}
|
|
|
|
|
617 |
|
618 |
startCountdown();
|
619 |
|
@@ -791,7 +790,6 @@ function initRound() {
|
|
791 |
}
|
792 |
}
|
793 |
}
|
794 |
-
enemies.forEach(enemy => enemy.update());
|
795 |
}
|
796 |
function spawnHealthItem(x, y) {
|
797 |
items.push({x, y});
|
|
|
514 |
sound.play();
|
515 |
|
516 |
// ๋ฐ์ฌ ์ดํํธ ์ถ๊ฐ
|
517 |
+
effects.push(new Effect(
|
518 |
this.x + Math.cos(this.angle) * 30,
|
519 |
this.y + Math.sin(this.angle) * 30,
|
520 |
500,
|
521 |
'fire',
|
522 |
this.angle,
|
523 |
+
this
|
524 |
));
|
525 |
|
526 |
bullets.push({
|
|
|
604 |
supportUnits = [];
|
605 |
lastSupportSpawn = 0;
|
606 |
|
607 |
+
if (currentStage === 2) {
|
608 |
+
backgroundImg.onload = () => {
|
609 |
+
// ์ด๋ฏธ์ง ๋ก๋ฉ์ด ์๋ฃ๋ ํ BGM ๋ณ๊ฒฝ
|
|
|
|
|
|
|
610 |
bgm.pause();
|
611 |
bgm.src = 'BGM3.ogg';
|
612 |
bgm.play();
|
613 |
+
};
|
614 |
+
backgroundImg.src = 'city2.png';
|
615 |
+
}
|
616 |
|
617 |
startCountdown();
|
618 |
|
|
|
790 |
}
|
791 |
}
|
792 |
}
|
|
|
793 |
}
|
794 |
function spawnHealthItem(x, y) {
|
795 |
items.push({x, y});
|