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:
Yogi Wiguna
2026-03-25 11:23:16 +08:00
parent a99297dd65
commit f482909df5
10 changed files with 793 additions and 30 deletions
+9
View File
@@ -1916,6 +1916,15 @@ func _on_global_timer_updated(time_remaining: float):
var minutes = int(time_remaining) / 60
var seconds = int(time_remaining) % 60
timer_label.text = "%d:%02d" % [minutes, seconds]
# Trigger countdown animations (30s and 15s)
if int(time_remaining) == 30 and int(time_remaining + 0.1) > 30:
if vfx_manager and vfx_manager.has_method("play_countdown_30s"):
vfx_manager.play_countdown_30s()
elif int(time_remaining) == 15 and int(time_remaining + 0.1) > 15:
if vfx_manager and vfx_manager.has_method("play_countdown_15s"):
vfx_manager.play_countdown_15s()
@rpc("any_peer", "call_local", "reliable")
func sync_game_end_stop_n_go(winner_id: int):
print("[STOP n GO] Game ended! Winner: ", winner_id)