summaryrefslogtreecommitdiff
path: root/scenes
diff options
context:
space:
mode:
Diffstat (limited to 'scenes')
-rw-r--r--scenes/levels/base_level.gd4
-rw-r--r--scenes/levels/base_level.tscn20
-rw-r--r--scenes/pause.tscn8
3 files changed, 18 insertions, 14 deletions
diff --git a/scenes/levels/base_level.gd b/scenes/levels/base_level.gd
index c42e548..b6967c6 100644
--- a/scenes/levels/base_level.gd
+++ b/scenes/levels/base_level.gd
@@ -1,11 +1,11 @@
extends Node2D
-onready var pause_menu = $PauseMenu
+onready var pause_menu = $Camera2D/PauseMenu
# Called when the node enters the scene tree for the first time.
func _ready():
$Control/TextReveal.start()
- $healthbar.set_health(2)
+ $Camera2D/healthbar.set_health(2)
func _on_MenuButton_on_click():
pause_menu.pause()
diff --git a/scenes/levels/base_level.tscn b/scenes/levels/base_level.tscn
index c174aa3..a761e61 100644
--- a/scenes/levels/base_level.tscn
+++ b/scenes/levels/base_level.tscn
@@ -14,13 +14,21 @@ _data = {
}
[node name="BaseLevel" type="Node2D"]
-position = Vector2( 486.33, -65.5159 )
script = ExtResource( 6 )
[node name="Camera2D" type="Camera2D" parent="."]
position = Vector2( 153.457, 427.259 )
current = true
+[node name="healthbar" parent="Camera2D" instance=ExtResource( 3 )]
+position = Vector2( -595.377, -321.363 )
+maxhealth = 3
+offset = 60
+
+[node name="PauseMenu" parent="Camera2D" instance=ExtResource( 5 )]
+visible = false
+position = Vector2( 0, 0 )
+
[node name="background_blue" type="Sprite" parent="Camera2D"]
position = Vector2( 8.47589, -0.203278 )
scale = Vector2( 0.691279, 0.704278 )
@@ -32,11 +40,6 @@ script = ExtResource( 2 )
[node name="Path2D" type="Path2D" parent="PathRenderer"]
curve = SubResource( 1 )
-[node name="healthbar" parent="." instance=ExtResource( 3 )]
-position = Vector2( -441.92, 105.896 )
-maxhealth = 3
-offset = 60
-
[node name="MenuButton" parent="." instance=ExtResource( 4 )]
position = Vector2( 740.235, 113.978 )
text = "Menu"
@@ -59,7 +62,6 @@ Tarifbekanntmachung national DB Fernverkehr AG und DB Regio AG, Stand 16.04.2021
Tarifbekanntmachungen international DB Fernverkehr AG, Stand 24.04.2021 (PDF, 128KB)"
speed = 10.0
-[node name="PauseMenu" parent="." instance=ExtResource( 5 )]
-visible = false
-position = Vector2( 155.016, 424.068 )
+[node name="LevelHolder" type="Node2D" parent="."]
+
[connection signal="on_click" from="MenuButton" to="." method="_on_MenuButton_on_click"]
diff --git a/scenes/pause.tscn b/scenes/pause.tscn
index fecfc28..416c34f 100644
--- a/scenes/pause.tscn
+++ b/scenes/pause.tscn
@@ -6,22 +6,24 @@
[node name="PauseMenu" type="Node2D"]
pause_mode = 2
+position = Vector2( 640, 360 )
+z_index = 6
script = ExtResource( 2 )
[node name="Resume" parent="." instance=ExtResource( 1 )]
pause_mode = 2
-position = Vector2( -1.68179, -50 )
+position = Vector2( 0, -50 )
z_index = 1
text = "Resume"
fixed_width = 250
[node name="Sprite" type="Sprite" parent="."]
-position = Vector2( -8.98199, -1.80298 )
+modulate = Color( 1, 1, 1, 0.372549 )
texture = ExtResource( 3 )
[node name="Main Menu" parent="." instance=ExtResource( 1 )]
pause_mode = 2
-position = Vector2( -1.68179, 50 )
+position = Vector2( 0, 50 )
z_index = 1
text = "Main Menu"
fixed_width = 250