summaryrefslogtreecommitdiff
path: root/scenes/story
diff options
context:
space:
mode:
authorrom <romangraef@gmail.com>2021-04-27 02:26:24 +0200
committerrom <romangraef@gmail.com>2021-04-27 02:26:24 +0200
commit9167422d825ff1451b2eb5e877b4f4abd1a73989 (patch)
tree726be47d27ca2dacbe810d6383948f89fe1ffa7a /scenes/story
parent8755544fd0dbb801f8d593f5891eaee00dd4ecd5 (diff)
downloadldjam48-9167422d825ff1451b2eb5e877b4f4abd1a73989.tar.gz
ldjam48-9167422d825ff1451b2eb5e877b4f4abd1a73989.tar.bz2
ldjam48-9167422d825ff1451b2eb5e877b4f4abd1a73989.zip
continue
Diffstat (limited to 'scenes/story')
-rw-r--r--scenes/story/story.gd19
1 files changed, 19 insertions, 0 deletions
diff --git a/scenes/story/story.gd b/scenes/story/story.gd
index 8681d8e..70b4b01 100644
--- a/scenes/story/story.gd
+++ b/scenes/story/story.gd
@@ -1,5 +1,24 @@
extends Level
+const button = preload("res://components/button.tscn")
+
+var _continue
+
+func _ready():
+ _continue = button.instance()
+ _continue.position = Vector2(0, 300)
+ _continue.visible = false
+ _continue.text = "Continue"
+ _continue.connect("on_click", self, "cont")
+ $TextrevealBox.connect("finished_reveal", self, "show_continue")
+ add_child(_continue)
+
+func cont():
+ finish_level()
+
+func show_continue():
+ _continue.visible = true
+
func start():
.start()
$TextrevealBox.start()