feat: Add new sprite animation assets, including 15sec and 30sec sprites, and initial animation and main scenes with supporting scripts.
This commit is contained in:
@@ -2,6 +2,7 @@ extends Control
|
||||
|
||||
@onready var animated_sprite_2d: AnimatedSprite2D = $StopPhase/AnimatedSprite2D
|
||||
@onready var animation_player: AnimationPlayer = $AnimationPlayer
|
||||
@onready var count_down_animation: AnimatedSprite2D = $CountDown/CountDownAnimation
|
||||
|
||||
#func _input(event: InputEvent) -> void:
|
||||
#if event.is_action_pressed("grab_item"):
|
||||
@@ -21,3 +22,9 @@ func stop_phase_anim_play():
|
||||
|
||||
func stop_phase_anim_stop():
|
||||
animated_sprite_2d.stop()
|
||||
|
||||
func play_countdown_30s():
|
||||
count_down_animation.play("30s")
|
||||
|
||||
func play_countdown_15s():
|
||||
count_down_animation.play("15s")
|
||||
|
||||
Reference in New Issue
Block a user