Added playSound func, use this on attack

This commit is contained in:
2025-02-06 21:00:32 +01:00
parent 122a178feb
commit c2d41a63a7
9 changed files with 22 additions and 10 deletions

View File

@ -41,7 +41,7 @@ export function useGameControlsComposable(scene: Phaser.Scene, layer: Phaser.Til
// Start movement loop if not already running
if (!moveInterval) {
moveInterval = window.setInterval(moveCharacter, 250) // Adjust timing as needed
moveInterval = window.setInterval(moveCharacter, 100) // Adjust timing as needed
moveCharacter() // Move immediately on first press
}
}