Spaces:
Running
Running
cutechicken
commited on
Update game.js
Browse files
game.js
CHANGED
@@ -582,7 +582,7 @@ class Enemy {
|
|
582 |
this.alternativePath = null;
|
583 |
this.pathFindingTimeout = 0;
|
584 |
this.lastPathUpdateTime = 0;
|
585 |
-
this.pathUpdateInterval =
|
586 |
this.moveSpeed = type === 'tank' ? ENEMY_MOVE_SPEED : ENEMY_MOVE_SPEED * 0.7;
|
587 |
|
588 |
// AI 상태 관리
|
|
|
582 |
this.alternativePath = null;
|
583 |
this.pathFindingTimeout = 0;
|
584 |
this.lastPathUpdateTime = 0;
|
585 |
+
this.pathUpdateInterval = 3000; // 3초마다 경로 업데이트
|
586 |
this.moveSpeed = type === 'tank' ? ENEMY_MOVE_SPEED : ENEMY_MOVE_SPEED * 0.7;
|
587 |
|
588 |
// AI 상태 관리
|