ajout des sfx de recharge et de mouvements

This commit is contained in:
2026-03-01 19:41:42 +01:00
parent 3869dcfcb4
commit 4c8bd33217
6 changed files with 47 additions and 32 deletions

View File

@@ -80,6 +80,12 @@ func _process(delta):
move_preview_zone(get_global_mouse_position())
else:
velocity = Vector2.ZERO
if velocity == Vector2.ZERO and %MovementAudioStreamPlayer.playing == true:
%MovementAudioStreamPlayer.stop()
elif velocity != Vector2.ZERO and %MovementAudioStreamPlayer.playing == false:
%MovementAudioStreamPlayer.play()
move_and_slide()
func _on_inventory_updated(_inventory: Inventory):