summaryrefslogtreecommitdiff
path: root/ui/start_screen.gd
diff options
context:
space:
mode:
Diffstat (limited to 'ui/start_screen.gd')
-rw-r--r--ui/start_screen.gd13
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/start_screen.gd b/ui/start_screen.gd
new file mode 100644
index 0000000..418e407
--- /dev/null
+++ b/ui/start_screen.gd
@@ -0,0 +1,13 @@
+extends Control
+
+
+func _ready() -> void:
+ %CountdownTimer.start()
+
+
+func _process(delta: float) -> void:
+ %CountdownLabel.text = "%.1f" % %CountdownTimer.time_left
+
+
+func _on_countdown_timer_timeout() -> void:
+ (func(): get_tree().change_scene_to_file("res://stage/stage_01.tscn")).call_deferred()