Update index.html
Browse files- index.html +5 -7
index.html
CHANGED
@@ -281,9 +281,9 @@
|
|
281 |
return this.x < canvas.width;
|
282 |
}
|
283 |
|
284 |
-
|
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 |
-
|
|
|
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 |
|