Slightly altered movement delay

This commit is contained in:
Dennis Postma 2025-02-01 02:31:43 +01:00
parent 3b6c11090f
commit a5ca524bb4
2 changed files with 4 additions and 4 deletions

6
package-lock.json generated
View File

@ -5163,9 +5163,9 @@
} }
}, },
"node_modules/mariadb/node_modules/@types/node": { "node_modules/mariadb/node_modules/@types/node": {
"version": "22.12.0", "version": "22.13.0",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.12.0.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.0.tgz",
"integrity": "sha512-Fll2FZ1riMjNmlmJOdAyY5pUbkftXslB5DgEzlIuNaiWhXd00FhWxVC/r4yV/4wBb9JfImTu+jiSvXTkJ7F/gA==", "integrity": "sha512-ClIbNe36lawluuvq3+YYhnIN2CELi+6q8NpnM7PYp4hBn/TatfboPgVSm2rwKRfnV2M+Ty9GWDFI64KEe+kysA==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"undici-types": "~6.20.0" "undici-types": "~6.20.0"

View File

@ -11,7 +11,7 @@ type Position = { positionX: number; positionY: number }
export type Node = Position & { parent?: Node; g: number; h: number; f: number } export type Node = Position & { parent?: Node; g: number; h: number; f: number }
class CharacterService extends BaseService { class CharacterService extends BaseService {
private readonly MOVEMENT_DELAY_MS = 250 private readonly MOVEMENT_DELAY_MS = 260
private readonly DIRECTIONS = [ private readonly DIRECTIONS = [
{ x: 0, y: -1 }, // Up { x: 0, y: -1 }, // Up
{ x: 0, y: 1 }, // Down { x: 0, y: 1 }, // Down