feat: implement Stop N Go arena, animation system, and lobby manager features

This commit is contained in:
Yogi Wiguna
2026-03-30 15:06:21 +08:00
parent 52d9b4bffb
commit 42e96a7ed9
45 changed files with 1110 additions and 79 deletions
+11
View File
@@ -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")