Update index.html
Browse files- index.html +9 -9
index.html
CHANGED
@@ -248,15 +248,15 @@
|
|
248 |
const sound = this.isBoss ? new Audio('firemn.ogg') : enemyFireSound.cloneNode();
|
249 |
sound.play();
|
250 |
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
}
|
261 |
}
|
262 |
function showShop() {
|
|
|
248 |
const sound = this.isBoss ? new Audio('firemn.ogg') : enemyFireSound.cloneNode();
|
249 |
sound.play();
|
250 |
|
251 |
+
bullets.push({
|
252 |
+
x: this.x + Math.cos(this.angle) * 30,
|
253 |
+
y: this.y + Math.sin(this.angle) * 30,
|
254 |
+
angle: this.angle,
|
255 |
+
speed: this.isBoss ? 10 : 5, // 보스 탄환 속도 증가
|
256 |
+
isEnemy: true,
|
257 |
+
size: this.isBoss ? 5 : 3, // 보스일 경우 크기 증가
|
258 |
+
damage: this.isBoss ? 300 : 150 // 보스 데미지 강화
|
259 |
+
});
|
260 |
}
|
261 |
}
|
262 |
function showShop() {
|