cutechicken commited on
Commit
b32bcd4
β€’
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
  // λ©”μ‹œ νšŒμ „ 적용