ld58-collector/art_collector.gd
2025-10-06 00:06:21 -07:00

22 lines
642 B
GDScript

class_name ArtCollector extends Node2D
func _ready() -> void:
$ArtCollectorAnimations.set_frame(randi_range(0, 16))
#$ArtCollectorAnimations.animation_finished.connect(_handle_anim_finish)
func idle():
$ArtCollectorAnimations.play("Idle")
func normal_paddle():
$ArtCollectorAnimations.play("NormalPaddle")
$NormalPaddleSound.play()
$PaddleSuccess.play()
await $ArtCollectorAnimations.animation_finished
$ArtCollectorAnimations.play("Shiny")
func critical_paddle():
$ArtCollectorAnimations.play("CriticalPaddle")
await $ArtCollectorAnimations.animation_finished
$ArtCollectorAnimations.play("Shiny")
#func _handle_anim_finish