diff options
author | rom <romangraef@gmail.com> | 2021-04-25 14:11:45 +0200 |
---|---|---|
committer | rom <romangraef@gmail.com> | 2021-04-25 14:16:00 +0200 |
commit | e48dd86c4b4b5c406717d10beca03a7e3e526efb (patch) | |
tree | fafe1c3305780e3f196e5242d969386d372e2588 | |
parent | 0a59c390420a966e9c339641e5c9f6e8f846a89e (diff) | |
download | ldjam48-e48dd86c4b4b5c406717d10beca03a7e3e526efb.tar.gz ldjam48-e48dd86c4b4b5c406717d10beca03a7e3e526efb.tar.bz2 ldjam48-e48dd86c4b4b5c406717d10beca03a7e3e526efb.zip |
Make pause background darker
-rw-r--r-- | .import/Level Loading.png-6e846a86911f006cb9dbfe69ddbfb93e.md5 | 3 | ||||
-rw-r--r-- | .import/Level Loading.png-6e846a86911f006cb9dbfe69ddbfb93e.stex | bin | 0 -> 44731 bytes | |||
-rw-r--r-- | Level Loading.png | bin | 0 -> 49745 bytes | |||
-rw-r--r-- | Level Loading.png.import | 34 | ||||
-rw-r--r-- | scenes/levels/base_level.gd | 4 | ||||
-rw-r--r-- | scenes/levels/base_level.tscn | 20 | ||||
-rw-r--r-- | scenes/pause.tscn | 8 |
7 files changed, 55 insertions, 14 deletions
diff --git a/.import/Level Loading.png-6e846a86911f006cb9dbfe69ddbfb93e.md5 b/.import/Level Loading.png-6e846a86911f006cb9dbfe69ddbfb93e.md5 new file mode 100644 index 0000000..49717f1 --- /dev/null +++ b/.import/Level Loading.png-6e846a86911f006cb9dbfe69ddbfb93e.md5 @@ -0,0 +1,3 @@ +source_md5="df94da78bef2a6b5f9c5bdd070482f84" +dest_md5="8c41d1c747fb9dfc4c074a06fe3d98ac" + diff --git a/.import/Level Loading.png-6e846a86911f006cb9dbfe69ddbfb93e.stex b/.import/Level Loading.png-6e846a86911f006cb9dbfe69ddbfb93e.stex Binary files differnew file mode 100644 index 0000000..242cc82 --- /dev/null +++ b/.import/Level Loading.png-6e846a86911f006cb9dbfe69ddbfb93e.stex diff --git a/Level Loading.png b/Level Loading.png Binary files differnew file mode 100644 index 0000000..0899b55 --- /dev/null +++ b/Level Loading.png diff --git a/Level Loading.png.import b/Level Loading.png.import new file mode 100644 index 0000000..aeaa2f9 --- /dev/null +++ b/Level Loading.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/Level Loading.png-6e846a86911f006cb9dbfe69ddbfb93e.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Level Loading.png" +dest_files=[ "res://.import/Level Loading.png-6e846a86911f006cb9dbfe69ddbfb93e.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 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 |