summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scenes/levels/base_level.gd3
-rw-r--r--scenes/levels/base_level.tscn1
-rw-r--r--scenes/levels/typeracer.gd5
-rw-r--r--scenes/levels/typeracer.tscn15
4 files changed, 22 insertions, 2 deletions
diff --git a/scenes/levels/base_level.gd b/scenes/levels/base_level.gd
index 5ae9ebe..c7e68ee 100644
--- a/scenes/levels/base_level.gd
+++ b/scenes/levels/base_level.gd
@@ -7,7 +7,8 @@ onready var _path_renderer : PathRenderer = $PathRenderer
onready var _health_bar = $Camera2D/healthbar
onready var _last_camera_location : Vector2 = $Camera2D.position
const _levels = [
- preload("res://scenes/levels/level1.tscn")
+ preload("res://scenes/levels/typeracer.tscn"),
+ preload("res://scenes/levels/reactiontest.tscn")
]
var _current_level = 0
diff --git a/scenes/levels/base_level.tscn b/scenes/levels/base_level.tscn
index 66eabfc..5f0a4a6 100644
--- a/scenes/levels/base_level.tscn
+++ b/scenes/levels/base_level.tscn
@@ -39,6 +39,5 @@ text = "Menu"
[node name="PauseMenu" parent="Camera2D" instance=ExtResource( 5 )]
visible = false
-
[connection signal="done" from="Camera2D" to="." method="_on_Camera2D_done"]
[connection signal="on_click" from="Camera2D/MenuButton" to="." method="_on_MenuButton_on_click"]
diff --git a/scenes/levels/typeracer.gd b/scenes/levels/typeracer.gd
new file mode 100644
index 0000000..95b8cd2
--- /dev/null
+++ b/scenes/levels/typeracer.gd
@@ -0,0 +1,5 @@
+extends Level
+
+func start():
+ .start()
+ pass
diff --git a/scenes/levels/typeracer.tscn b/scenes/levels/typeracer.tscn
new file mode 100644
index 0000000..ed3aa50
--- /dev/null
+++ b/scenes/levels/typeracer.tscn
@@ -0,0 +1,15 @@
+[gd_scene load_steps=2 format=2]
+
+[ext_resource path="res://scenes/levels/typeracer.gd" type="Script" id=1]
+
+[node name="Node2D" type="Node2D"]
+script = ExtResource( 1 )
+
+[node name="TextEdit" type="TextEdit" parent="."]
+margin_left = -374.585
+margin_top = -112.886
+margin_right = 385.416
+margin_bottom = 113.114
+__meta__ = {
+"_edit_use_anchors_": false
+}