cutechicken commited on
Commit
b32bcd4
ยท
verified ยท
1 Parent(s): af4bb6b

Update game.js

Browse files
Files changed (1) hide show
  1. game.js +1 -1
game.js CHANGED
@@ -682,7 +682,7 @@ class Enemy {
682
 
683
  // ํ˜„์žฌ ํšŒ์ „๊ฐ ๋ถ€๋“œ๋Ÿฝ๊ฒŒ ์กฐ์ • - ์„ ํšŒ ์†๋„๋ฅผ ๋А๋ฆฌ๊ฒŒ ํ•˜๊ธฐ ์œ„ํ•ด ์กฐ์ •
684
  const rotationDiff = this.aiState.targetRotation - this.aiState.currentRotation;
685
- let rotationStep = Math.sign(rotationDiff) * Math.min(Math.abs(rotationDiff), 0.02); // ๊ธฐ์กด 0.05์—์„œ 0.02๋กœ ์ˆ˜์ •
686
  this.aiState.currentRotation += rotationStep;
687
 
688
  // ๋ฉ”์‹œ ํšŒ์ „ ์ ์šฉ
 
682
 
683
  // ํ˜„์žฌ ํšŒ์ „๊ฐ ๋ถ€๋“œ๋Ÿฝ๊ฒŒ ์กฐ์ • - ์„ ํšŒ ์†๋„๋ฅผ ๋А๋ฆฌ๊ฒŒ ํ•˜๊ธฐ ์œ„ํ•ด ์กฐ์ •
684
  const rotationDiff = this.aiState.targetRotation - this.aiState.currentRotation;
685
+ let rotationStep = Math.sign(rotationDiff) * Math.min(Math.abs(rotationDiff), 0.05); // ๊ธฐ์กด 0.02์—์„œ 0.05๋กœ ์ˆ˜์ •
686
  this.aiState.currentRotation += rotationStep;
687
 
688
  // ๋ฉ”์‹œ ํšŒ์ „ ์ ์šฉ