diff options
author | Jonas Bernard <public.jbernard@web.de> | 2021-04-25 16:45:44 +0200 |
---|---|---|
committer | Jonas Bernard <public.jbernard@web.de> | 2021-04-25 16:45:44 +0200 |
commit | 86c8cf34d53290df113a97c051acade184e4f2f3 (patch) | |
tree | f1f0c46c519dc2c6c8a91da5319e312172aec3ac /scenes/levels | |
parent | f73065719842261277529885caf026486fce1ec9 (diff) | |
download | ldjam48-86c8cf34d53290df113a97c051acade184e4f2f3.tar.gz ldjam48-86c8cf34d53290df113a97c051acade184e4f2f3.tar.bz2 ldjam48-86c8cf34d53290df113a97c051acade184e4f2f3.zip |
repeat this level
Diffstat (limited to 'scenes/levels')
-rw-r--r-- | scenes/levels/base_level.gd | 2 | ||||
-rw-r--r-- | scenes/levels/base_level.tscn | 24 | ||||
-rw-r--r-- | scenes/levels/repeat_this.tscn | 18 |
3 files changed, 31 insertions, 13 deletions
diff --git a/scenes/levels/base_level.gd b/scenes/levels/base_level.gd index d7dc3f7..9a2a618 100644 --- a/scenes/levels/base_level.gd +++ b/scenes/levels/base_level.gd @@ -7,7 +7,7 @@ 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/introduction.tscn") + preload("res://scenes/levels/repeat_this.tscn") ] var _current_level = 0 diff --git a/scenes/levels/base_level.tscn b/scenes/levels/base_level.tscn index 3092a5a..055e0f4 100644 --- a/scenes/levels/base_level.tscn +++ b/scenes/levels/base_level.tscn @@ -11,6 +11,12 @@ [node name="BaseLevel" type="Node2D"] script = ExtResource( 6 ) +[node name="PathRenderer" type="Node2D" parent="."] +script = ExtResource( 2 ) +path_color = Color( 0, 0.741176, 1, 1 ) + +[node name="LevelHolder" type="Node2D" parent="."] + [node name="Camera2D" type="Camera2D" parent="."] position = Vector2( 153.457, 427.259 ) current = true @@ -21,23 +27,17 @@ position = Vector2( -595.377, -321.363 ) maxhealth = 3 offset = 60 -[node name="PauseMenu" parent="Camera2D" instance=ExtResource( 5 )] -visible = false - [node name="background_blue" type="Sprite" parent="Camera2D"] position = Vector2( 8.47589, -0.203278 ) scale = Vector2( 0.691279, 0.704278 ) +z_index = -5 texture = ExtResource( 1 ) -[node name="PathRenderer" type="Node2D" parent="."] -script = ExtResource( 2 ) -path_color = Color( 0, 0.741176, 1, 1 ) - -[node name="MenuButton" parent="." instance=ExtResource( 4 )] -position = Vector2( 725.099, 115.66 ) +[node name="MenuButton" parent="Camera2D" instance=ExtResource( 4 )] +position = Vector2( 571.642, -311.599 ) text = "Menu" -[node name="LevelHolder" type="Node2D" parent="."] - +[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="MenuButton" to="." method="_on_MenuButton_on_click"] +[connection signal="on_click" from="Camera2D/MenuButton" to="." method="_on_MenuButton_on_click"] diff --git a/scenes/levels/repeat_this.tscn b/scenes/levels/repeat_this.tscn new file mode 100644 index 0000000..e96cc34 --- /dev/null +++ b/scenes/levels/repeat_this.tscn @@ -0,0 +1,18 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://components/Level.gd" type="Script" id=1] +[ext_resource path="res://components/textreveal.gd" type="Script" id=2] + +[node name="Level" type="Node2D"] +script = ExtResource( 1 ) + +[node name="Insturction" type="Label" parent="."] +margin_left = 373.0 +margin_top = 564.0 +margin_right = 951.0 +margin_bottom = 668.0 +script = ExtResource( 2 ) +__meta__ = { +"_edit_use_anchors_": false +} +to_render = "Repeat the pattern" |