Spaces:
Running
Running
Update game.js
Browse files
game.js
CHANGED
@@ -1849,7 +1849,7 @@ this.enemies.forEach(enemy => {
|
|
1849 |
|
1850 |
// ์ ์์น๋ฅผ ํ๋ฉด ์ขํ๋ก ๋ณํ
|
1851 |
const enemyPosition = enemy.mesh.position.clone();
|
1852 |
-
enemyPosition.y +=
|
1853 |
|
1854 |
const screenPosition = enemyPosition.project(this.camera);
|
1855 |
|
|
|
1849 |
|
1850 |
// ์ ์์น๋ฅผ ํ๋ฉด ์ขํ๋ก ๋ณํ
|
1851 |
const enemyPosition = enemy.mesh.position.clone();
|
1852 |
+
enemyPosition.y += 5; // ์ ๋จธ๋ฆฌ ์์ ํ์ํ๊ธฐ ์ํด ๋์ด ์กฐ์
|
1853 |
|
1854 |
const screenPosition = enemyPosition.project(this.camera);
|
1855 |
|