Changed values for smoother movement

This commit is contained in:
2025-02-06 14:07:46 +01:00
parent 765a0468bc
commit 4992ef69d4
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ type Position = { positionX: number; positionY: number }
export type Node = Position & { parent?: Node; g: number; h: number; f: number }
class CharacterMoveService extends BaseService {
private readonly MOVEMENT_DELAY_MS = 260
private readonly MOVEMENT_DELAY_MS = 200
private readonly MAX_PATH_LENGTH = 20 // Limit maximum path length
private readonly DIRECTIONS = [