Spaces:
Running
Running
cutechicken
commited on
Commit
β’
88ec325
1
Parent(s):
f35bcf4
Update game.js
Browse files
game.js
CHANGED
@@ -1761,9 +1761,9 @@ class Game {
|
|
1761 |
enemy.bullets.forEach((bullet, bulletIndex) => {
|
1762 |
// νλ μ΄μ΄ ν±ν¬μ λ°μ΄λ© λ°μ€ μμ±
|
1763 |
const tankBox = new THREE.Box3().setFromObject(this.tank.body);
|
1764 |
-
|
1765 |
-
tankBox.min.x -=
|
1766 |
-
tankBox.max.x +=
|
1767 |
|
1768 |
// μ΄μμ λ°μ΄λ© λ°μ€ μμ±
|
1769 |
const bulletBox = new THREE.Box3().setFromObject(bullet);
|
@@ -1847,8 +1847,8 @@ this.enemies.forEach(enemy => {
|
|
1847 |
// μ μ μ°¨μ λ°μ΄λ© λ°μ€ μμ±
|
1848 |
const enemyBox = new THREE.Box3().setFromObject(enemy.mesh);
|
1849 |
// λ°μ΄λ© λ°μ€ ν¬κΈ° μ‘°μ (νμ 2λ°°λ‘)
|
1850 |
-
enemyBox.min.x -= 1
|
1851 |
-
enemyBox.max.x +=
|
1852 |
|
1853 |
// μ΄μμ λ°μ΄λ© λ°μ€ μμ±
|
1854 |
const bulletBox = new THREE.Box3().setFromObject(bullet);
|
|
|
1761 |
enemy.bullets.forEach((bullet, bulletIndex) => {
|
1762 |
// νλ μ΄μ΄ ν±ν¬μ λ°μ΄λ© λ°μ€ μμ±
|
1763 |
const tankBox = new THREE.Box3().setFromObject(this.tank.body);
|
1764 |
+
// λ°μ΄λ© λ°μ€ ν¬κΈ° μ‘°μ (1.5λ°°λ‘ μμ )
|
1765 |
+
tankBox.min.x -= 0.75;
|
1766 |
+
tankBox.max.x += 0.75;
|
1767 |
|
1768 |
// μ΄μμ λ°μ΄λ© λ°μ€ μμ±
|
1769 |
const bulletBox = new THREE.Box3().setFromObject(bullet);
|
|
|
1847 |
// μ μ μ°¨μ λ°μ΄λ© λ°μ€ μμ±
|
1848 |
const enemyBox = new THREE.Box3().setFromObject(enemy.mesh);
|
1849 |
// λ°μ΄λ© λ°μ€ ν¬κΈ° μ‘°μ (νμ 2λ°°λ‘)
|
1850 |
+
enemyBox.min.x -= 0.75; // 2μμ 1.5λ‘ μμ
|
1851 |
+
enemyBox.max.x += 0.75;
|
1852 |
|
1853 |
// μ΄μμ λ°μ΄λ© λ°μ€ μμ±
|
1854 |
const bulletBox = new THREE.Box3().setFromObject(bullet);
|