cutechicken commited on
Commit
ba58a8d
ยท
verified ยท
1 Parent(s): 8586f8b

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +5 -5
index.html CHANGED
@@ -249,6 +249,7 @@
249
  const hitSounds = Array.from({length: 6}, (_, i) => new Audio(`hit${i+1}.ogg`));
250
  const reloadSounds = [new Audio('reload1.ogg'), new Audio('reload2.ogg')];
251
  const escapeSound = new Audio('escape.ogg');
 
252
  bgm.loop = true;
253
  enemyFireSound.volume = 0.5;
254
 
@@ -965,8 +966,8 @@ function updateGame() {
965
 
966
  fireBullet();
967
  }
968
- // ํ…Œ์ŠคํŠธ์ค‘, ์•ˆ๋˜๋ฉด ์‚ญ์ œ
969
- if(player.health <= 0) {
970
  gameOver = true;
971
  restartBtn.style.display = 'block';
972
  effects.push(new Effect(player.x, player.y, 1000, 'death'));
@@ -978,9 +979,8 @@ function updateGame() {
978
  // ์‚ฌ๋ง ํšจ๊ณผ์Œ ์žฌ์ƒ
979
  deathSound.play();
980
 
981
- // escape.ogg ์žฌ์ƒ
982
- const escapeSound = new Audio('escape.ogg');
983
- escapeSound.volume = 1.0; // ๋ณผ๋ฅจ ์„ค์ •
984
  escapeSound.play();
985
  }
986
  // BF109 ๊ด€๋ จ ์ฝ”๋“œ
 
249
  const hitSounds = Array.from({length: 6}, (_, i) => new Audio(`hit${i+1}.ogg`));
250
  const reloadSounds = [new Audio('reload1.ogg'), new Audio('reload2.ogg')];
251
  const escapeSound = new Audio('escape.ogg');
252
+
253
  bgm.loop = true;
254
  enemyFireSound.volume = 0.5;
255
 
 
966
 
967
  fireBullet();
968
  }
969
+ //ํ”Œ๋ ˆ์ด์–ด ์‚ฌ๋ง์‹œ ์†Œ๋ฆฌ ์žฌ์ƒ ๋ถ€๋ถ„
970
+ if(player.health <= 0) {
971
  gameOver = true;
972
  restartBtn.style.display = 'block';
973
  effects.push(new Effect(player.x, player.y, 1000, 'death'));
 
979
  // ์‚ฌ๋ง ํšจ๊ณผ์Œ ์žฌ์ƒ
980
  deathSound.play();
981
 
982
+ // escape ํšจ๊ณผ์Œ ์žฌ์ƒ
983
+ escapeSound.volume = 1.0;
 
984
  escapeSound.play();
985
  }
986
  // BF109 ๊ด€๋ จ ์ฝ”๋“œ