diff options
author | Jonas Bernard <public.jbernard@web.de> | 2021-04-26 00:44:00 +0200 |
---|---|---|
committer | Jonas Bernard <public.jbernard@web.de> | 2021-04-26 00:44:00 +0200 |
commit | d7c1a658e94dc5df8321457a3e34d6e0bbab3551 (patch) | |
tree | a6ea8123d87687d84a602cef071f5aefa7a750f4 /scenes/levels | |
parent | 965ef94ec0718dd5af9e7dbc29060c79f62d6b9b (diff) | |
download | ldjam48-d7c1a658e94dc5df8321457a3e34d6e0bbab3551.tar.gz ldjam48-d7c1a658e94dc5df8321457a3e34d6e0bbab3551.tar.bz2 ldjam48-d7c1a658e94dc5df8321457a3e34d6e0bbab3551.zip |
Typeracer
Diffstat (limited to 'scenes/levels')
-rw-r--r-- | scenes/levels/base_level.gd | 3 | ||||
-rw-r--r-- | scenes/levels/base_level.tscn | 1 | ||||
-rw-r--r-- | scenes/levels/typeracer.gd | 5 | ||||
-rw-r--r-- | scenes/levels/typeracer.tscn | 15 |
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 +} |