cutechicken commited on
Commit
8586f8b
·
verified ·
1 Parent(s): 1e4062b

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +4 -0
index.html CHANGED
@@ -240,6 +240,8 @@
240
  const machinegunSound = new Audio('firemg.ogg');
241
  const enemyFireSound = new Audio('fireenemy.ogg');
242
  let bgm = new Audio('title.ogg');
 
 
243
  const countSound = new Audio('count.ogg');
244
  const deathSound = new Audio('death.ogg');
245
  let currentHitSound = null;
@@ -291,9 +293,11 @@
291
  if (stageNumber === 1) {
292
  backgroundImg.src = 'city.png';
293
  bgm = new Audio('BGM2.ogg');
 
294
  } else if (stageNumber === 2) {
295
  backgroundImg.src = 'city2.png';
296
  bgm = new Audio('BGM3.ogg');
 
297
  enemyImg.src = 'enemyuk1.png';
298
  }
299
 
 
240
  const machinegunSound = new Audio('firemg.ogg');
241
  const enemyFireSound = new Audio('fireenemy.ogg');
242
  let bgm = new Audio('title.ogg');
243
+ bgm.volume = 0.7; // 볼륨을 70%로 설정
244
+ bgm.loop = true;
245
  const countSound = new Audio('count.ogg');
246
  const deathSound = new Audio('death.ogg');
247
  let currentHitSound = null;
 
293
  if (stageNumber === 1) {
294
  backgroundImg.src = 'city.png';
295
  bgm = new Audio('BGM2.ogg');
296
+ bgm.volume = 0.7; // 볼륨을 70%로 설정
297
  } else if (stageNumber === 2) {
298
  backgroundImg.src = 'city2.png';
299
  bgm = new Audio('BGM3.ogg');
300
+ bgm.volume = 0.7; // 볼륨을 70%로 설정
301
  enemyImg.src = 'enemyuk1.png';
302
  }
303