extends Control ## Platzhalter-Boot-Screen: Attribution -> Titel mit Flavor-Text -> Hauptmenü. ## TODO: später durch eine echte Opening-Cinematic ersetzen. @export var attribution_seconds: float = 2.0 @export var title_seconds: float = 2.5 @onready var attribution_label: Label = $AttributionLabel @onready var title_label: Label = $TitleLabel @onready var timer: Timer = $Timer var _stage: int = 0 func _ready() -> void: timer.timeout.connect(_advance) timer.start(attribution_seconds) func _unhandled_input(event: InputEvent) -> void: if (event is InputEventKey and event.pressed) or (event is InputEventMouseButton and event.pressed): _advance() func _advance() -> void: _stage += 1 if _stage == 1: attribution_label.visible = false title_label.visible = true timer.start(title_seconds) else: get_tree().change_scene_to_file("res://boot/main_menu.tscn")