cutechicken commited on
Commit
0030a47
ยท
verified ยท
1 Parent(s): 513a249

Update index.html

Browse files
Files changed (1) hide show
  1. 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
- const voiceFiles = ['voice1.ogg', 'voice2.ogg', 'voice3.ogg', 'voice4.ogg', 'voice5.ogg', 'voice6.ogg'];
408
- const randomVoice = new Audio(voiceFiles[Math.floor(Math.random() * voiceFiles.length)]);
409
- randomVoice.volume = 1.0; // 100% ๋ณผ๋ฅจ
410
- randomVoice.play();
 
 
 
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) {