Animation defenition moved to player_sprite.gd

This commit is contained in:
2026-02-03 00:00:51 +03:00
parent 63710b691b
commit 67c5f8e4d5
16 changed files with 116 additions and 53 deletions
@@ -1,15 +1,12 @@
extends PlayerState
const ANIMATION_DEATH = "death"
func enter() -> void:
SoundManager.play_sfx_stream(SoundManager.sfx_stream_death, player.global_position)
player.sprite.animation_finished.connect(_on_aniimation_finished, CONNECT_ONE_SHOT)
player.process_mode = Node.PROCESS_MODE_ALWAYS
process_mode = Node.PROCESS_MODE_ALWAYS
player.sprite.play(ANIMATION_DEATH)
player.sprite.play(PlayerSprite.ANIMATION_DEATH)
get_tree().paused = true