summaryrefslogtreecommitdiff
path: root/scenes
diff options
context:
space:
mode:
Diffstat (limited to 'scenes')
-rw-r--r--scenes/levels/puzzle/puzzle.tscn2
-rw-r--r--scenes/levels/typeracer.tscn1
-rw-r--r--scenes/menu.tscn3
-rw-r--r--scenes/story/story.gd19
4 files changed, 23 insertions, 2 deletions
diff --git a/scenes/levels/puzzle/puzzle.tscn b/scenes/levels/puzzle/puzzle.tscn
index ec10f81..4b061c8 100644
--- a/scenes/levels/puzzle/puzzle.tscn
+++ b/scenes/levels/puzzle/puzzle.tscn
@@ -2,7 +2,7 @@
[ext_resource path="res://scenes/levels/puzzle/puzzle.gd" type="Script" id=1]
-[node name="Node2D" type="Node2D"]
+[node name="Node2D2" type="Node2D"]
position = Vector2( 533.969, 239.439 )
script = ExtResource( 1 )
diff --git a/scenes/levels/typeracer.tscn b/scenes/levels/typeracer.tscn
index 60a13b0..d9328f4 100644
--- a/scenes/levels/typeracer.tscn
+++ b/scenes/levels/typeracer.tscn
@@ -75,5 +75,6 @@ position = Vector2( 147.157, 130.339 )
rotation = 0.363028
scale = Vector2( -5.362, 5.362 )
texture = SubResource( 1 )
+
[connection signal="text_changed" from="TextEdit" to="." method="_on_TextEdit_text_changed"]
[connection signal="on_click" from="Button" to="." method="_on_Button_on_click"]
diff --git a/scenes/menu.tscn b/scenes/menu.tscn
index 59c935b..09b6c23 100644
--- a/scenes/menu.tscn
+++ b/scenes/menu.tscn
@@ -112,7 +112,7 @@ tracks/0/keys = {
"values": [ Vector2( 0, 0 ), Vector2( 0, -725.715 ) ]
}
-[node name="Node2D" type="Node2D"]
+[node name="Node2D2" type="Node2D"]
script = ExtResource( 5 )
[node name="Background" type="Sprite" parent="."]
@@ -218,6 +218,7 @@ anims/startgame = SubResource( 2 )
[node name="Outgoing" type="AnimationPlayer" parent="."]
anims/tointro = SubResource( 3 )
anims/tosettings = SubResource( 4 )
+
[connection signal="on_click" from="Content/Back" to="." method="_on_Back_on_click"]
[connection signal="on_click" from="Content/HardMode" to="." method="_on_HardMode_on_click"]
[connection signal="on_click" from="Content/Fullscreen" to="." method="_on_Fullscreen_on_click"]
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()