cutechicken commited on
Commit
2403157
ยท
verified ยท
1 Parent(s): c4a4930

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +5 -7
index.html CHANGED
@@ -281,9 +281,9 @@
281
  return this.x < canvas.width;
282
  }
283
 
284
- shoot() {
285
- // ์ตœ์ดˆ ๋ฐœ์‚ฌ์‹œ์—๋งŒ ์†Œ๋ฆฌ ์žฌ์ƒ
286
- if (!this.hasPlayedSound) {
287
  new Audio('bf109mg.ogg').play();
288
  this.hasPlayedSound = true;
289
  }
@@ -325,7 +325,8 @@
325
  }
326
 
327
  shoot() {
328
- if (!this.hasPlayedMGSound) {
 
329
  const mgSound = new Audio('ju87mg.ogg');
330
  mgSound.volume = 1.0;
331
  mgSound.currentTime = 0;
@@ -334,10 +335,7 @@
334
  }
335
 
336
  // 100x100 ํ”ฝ์…€ ๊ธฐ์ค€์œผ๋กœ ๋‚ ๊ฐœ ์œ„์น˜ ์ขŒํ‘œ ์„ค์ •
337
- // ์™ผ์ชฝ ๋‚ ๊ฐœ: [20, 50] (์™ผ์ชฝ์—์„œ 20px, ์œ„์—์„œ 50px)
338
- // ์˜ค๋ฅธ์ชฝ ๋‚ ๊ฐœ: [80, 50] (์™ผ์ชฝ์—์„œ 80px, ์œ„์—์„œ 50px)
339
  [[20, 50], [80, 50]].forEach(([x, y]) => {
340
- // ์ด๋ฏธ์ง€ ์ค‘์‹ฌ์„ (50,50)์œผ๋กœ ํ•˜์—ฌ ์ขŒํ‘œ ๋ณ€ํ™˜
341
  const offsetX = x - 50;
342
  const offsetY = y - 50;
343
 
 
281
  return this.x < canvas.width;
282
  }
283
 
284
+ shoot() {
285
+ // ์นด์šดํŠธ๋‹ค์šด ์ค‘์ด ์•„๋‹ ๋•Œ๋งŒ ์†Œ๋ฆฌ ์žฌ์ƒ
286
+ if (!this.hasPlayedSound && !isCountingDown) {
287
  new Audio('bf109mg.ogg').play();
288
  this.hasPlayedSound = true;
289
  }
 
325
  }
326
 
327
  shoot() {
328
+ // ์นด์šดํŠธ๋‹ค์šด ์ค‘์ด ์•„๋‹ ๋•Œ๋งŒ ์†Œ๋ฆฌ ์žฌ์ƒ
329
+ if (!this.hasPlayedMGSound && !isCountingDown) {
330
  const mgSound = new Audio('ju87mg.ogg');
331
  mgSound.volume = 1.0;
332
  mgSound.currentTime = 0;
 
335
  }
336
 
337
  // 100x100 ํ”ฝ์…€ ๊ธฐ์ค€์œผ๋กœ ๋‚ ๊ฐœ ์œ„์น˜ ์ขŒํ‘œ ์„ค์ •
 
 
338
  [[20, 50], [80, 50]].forEach(([x, y]) => {
 
339
  const offsetX = x - 50;
340
  const offsetY = y - 50;
341