Update index.html
Browse files- index.html +8 -5
index.html
CHANGED
@@ -403,11 +403,14 @@
|
|
403 |
if(enemies.length === 0) {
|
404 |
console.log(`Checking round clear: Current round ${currentRound}, Boss stage: ${isBossStage}`);
|
405 |
|
406 |
-
//
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
|
|
|
|
|
|
411 |
|
412 |
if (!isBossStage) {
|
413 |
if(currentRound < 10) {
|
|
|
403 |
if(enemies.length === 0) {
|
404 |
console.log(`Checking round clear: Current round ${currentRound}, Boss stage: ${isBossStage}`);
|
405 |
|
406 |
+
// ํ๋์ ๋๋คํ ์์ฑ๋ง ์ฌ์
|
407 |
+
if (!isBossStage) {
|
408 |
+
const voiceFiles = ['voice1.ogg', 'voice2.ogg', 'voice3.ogg', 'voice4.ogg', 'voice5.ogg', 'voice6.ogg'];
|
409 |
+
const randomIndex = Math.floor(Math.random() * voiceFiles.length);
|
410 |
+
const randomVoice = new Audio(voiceFiles[randomIndex]);
|
411 |
+
randomVoice.volume = 1.0;
|
412 |
+
randomVoice.play();
|
413 |
+
}
|
414 |
|
415 |
if (!isBossStage) {
|
416 |
if(currentRound < 10) {
|