mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 08:23:45 +00:00
feat(*): Add sudden-death overtime with golden goal on a draw
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user