Improvement

This commit is contained in:
2025-02-11 23:17:06 +01:00
parent dd1cc795de
commit 2e3ff803f6
25 changed files with 30 additions and 28 deletions

View File

@ -1,4 +1,4 @@
import { SocketEvent } from '@/application/enums';
import { SocketEvent } from '@/application/enums'
import { getTile } from '@/services/mapService'
import { useGameStore } from '@/stores/gameStore'
import type { Ref } from 'vue'
@ -38,7 +38,7 @@ export function useGameControlsComposable(scene: Phaser.Scene, layer: Phaser.Til
if (['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown'].includes(event.key)) {
// Prevent key repeat events
if (event.repeat) return
pressedKeys.add(event.key)
// Start movement loop if not already running