summaryrefslogtreecommitdiff
path: root/scenes/introduction/introduction.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scenes/introduction/introduction.gd')
-rw-r--r--scenes/introduction/introduction.gd24
1 files changed, 24 insertions, 0 deletions
diff --git a/scenes/introduction/introduction.gd b/scenes/introduction/introduction.gd
new file mode 100644
index 0000000..f9d60d1
--- /dev/null
+++ b/scenes/introduction/introduction.gd
@@ -0,0 +1,24 @@
+extends Level
+
+export(String, MULTILINE) var text = ""
+
+signal next()
+
+# Called when the node enters the scene tree for the first time.
+func _ready():
+ $Continue.visible = false
+ $TextReveal.to_render = text
+ $TextReveal.start()
+
+func _on_TextReveal_finished_reveal():
+ $Continue.visible = true
+ $Skip.visible = false
+
+func _next():
+ emit_signal("next")
+
+func _on_Button_on_click():
+ _next()
+
+func _on_Skip_on_click():
+ _next()