feat: implement Stop N Go arena, animation system, and lobby manager features
This commit is contained in:
@@ -3,6 +3,8 @@ extends Control
|
||||
@onready var animated_sprite_2d: AnimatedSprite2D = $StopPhase/AnimatedSprite2D
|
||||
@onready var animation_player: AnimationPlayer = $AnimationPlayer
|
||||
@onready var count_down_animation: AnimatedSprite2D = $CountDown/CountDownAnimation
|
||||
@onready var go_finish: Control = $GoFinish
|
||||
@onready var go_animation_2d: AnimatedSprite2D = $GoFinish/GoAnimation2D
|
||||
|
||||
#func _input(event: InputEvent) -> void:
|
||||
#if event.is_action_pressed("grab_item"):
|
||||
@@ -28,3 +30,12 @@ func play_countdown_30s():
|
||||
|
||||
func play_countdown_15s():
|
||||
count_down_animation.play("15s")
|
||||
|
||||
func play_go_animation():
|
||||
animation_player.play("go_animation")
|
||||
|
||||
func play_go_finish_animation():
|
||||
if go_finish:
|
||||
go_finish.visible = true
|
||||
if go_animation_2d:
|
||||
go_animation_2d.play("go_animation")
|
||||
|
||||
Reference in New Issue
Block a user