diff --git a/src/composables/controls/useGameControlsComposable.ts b/src/composables/controls/useGameControlsComposable.ts index 8f9f6d1..4d6aef0 100644 --- a/src/composables/controls/useGameControlsComposable.ts +++ b/src/composables/controls/useGameControlsComposable.ts @@ -42,10 +42,7 @@ export function useGameControlsComposable(scene: Phaser.Scene, layer: Phaser.Til function emitMovement(x: number, y: number) { if (x === currentPosition.x && y === currentPosition.y) return - gameStore.connection?.emit(SocketEvent.MAP_CHARACTER_MOVE, { - positionX: x, - positionY: y - }) + gameStore.connection?.emit(SocketEvent.MAP_CHARACTER_MOVE, [x, y]) currentPosition = { x, y } }