diff options
author | rom <romangraef@gmail.com> | 2021-04-27 02:26:24 +0200 |
---|---|---|
committer | rom <romangraef@gmail.com> | 2021-04-27 02:26:24 +0200 |
commit | 9167422d825ff1451b2eb5e877b4f4abd1a73989 (patch) | |
tree | 726be47d27ca2dacbe810d6383948f89fe1ffa7a /scenes/story | |
parent | 8755544fd0dbb801f8d593f5891eaee00dd4ecd5 (diff) | |
download | ldjam48-9167422d825ff1451b2eb5e877b4f4abd1a73989.tar.gz ldjam48-9167422d825ff1451b2eb5e877b4f4abd1a73989.tar.bz2 ldjam48-9167422d825ff1451b2eb5e877b4f4abd1a73989.zip |
continue
Diffstat (limited to 'scenes/story')
-rw-r--r-- | scenes/story/story.gd | 19 |
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() |