cutechicken commited on
Commit
88ec325
β€’
1 Parent(s): f35bcf4

Update game.js

Browse files
Files changed (1) hide show
  1. game.js +5 -5
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 -= 1;
1766
- tankBox.max.x += 1;
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 += 1;
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);