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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user