Changed values for smoother movement
This commit is contained in:
parent
765a0468bc
commit
4992ef69d4
@ -8,7 +8,7 @@ import TeleportService from '#services/characterTeleportService'
|
||||
|
||||
export default class CharacterMove extends BaseEvent {
|
||||
private readonly characterService = CharacterService
|
||||
private readonly MOVEMENT_CANCEL_DELAY = 100
|
||||
private readonly MOVEMENT_CANCEL_DELAY = 250
|
||||
private movementTimeouts: Map<string, NodeJS.Timeout> = new Map()
|
||||
|
||||
public listen(): void {
|
||||
|
@ -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 = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user