feat(*): Add sudden-death overtime with golden goal on a draw

This commit is contained in:
Josh Creek
2026-07-28 19:44:35 +01:00
parent 09ea8d6fbc
commit ac317cd2e1
2 changed files with 33 additions and 5 deletions
+8
View File
@@ -86,6 +86,9 @@ func _initialize_hud():
if game_manager and game_manager.has_signal("kickoff_countdown"):
game_manager.kickoff_countdown.connect(_on_kickoff_countdown)
if game_manager and game_manager.has_signal("overtime_started"):
game_manager.overtime_started.connect(_on_overtime_started)
func _connect_ship_signals():
# Route ship telemetry to the flight instruments
if ship.has_signal("speed_changed"):
@@ -154,6 +157,11 @@ func _flash_score_label(label: Label) -> void:
tween.tween_property(label, "scale", Vector2(1.4, 1.4), 0.1)
tween.tween_property(label, "scale", Vector2(1.0, 1.0), 0.2)
func _on_overtime_started():
if timer_label and is_instance_valid(timer_label):
timer_label.text = "OT"
timer_label.add_theme_color_override("font_color", Color(1.0, 0.85, 0.2))
func _on_kickoff_countdown(count: int):
if not kickoff_label or not is_instance_valid(kickoff_label):
return