summaryrefslogtreecommitdiff
path: root/scenes
diff options
context:
space:
mode:
authorJonas Bernard <public.jbernard@web.de>2021-04-25 13:06:51 +0200
committerJonas Bernard <public.jbernard@web.de>2021-04-25 13:06:51 +0200
commit26900b16664922203ad658f0f561624114ac601d (patch)
treeb8124c66fa567343cd09976d78de165bd5c94bdf /scenes
parent9f2f40244036a459cc580a06df57cbbf2028a499 (diff)
downloadldjam48-26900b16664922203ad658f0f561624114ac601d.tar.gz
ldjam48-26900b16664922203ad658f0f561624114ac601d.tar.bz2
ldjam48-26900b16664922203ad658f0f561624114ac601d.zip
Name
Diffstat (limited to 'scenes')
-rw-r--r--scenes/levels/base_level.gd1
-rw-r--r--scenes/menu.tscn24
2 files changed, 23 insertions, 2 deletions
diff --git a/scenes/levels/base_level.gd b/scenes/levels/base_level.gd
index b391917..c42e548 100644
--- a/scenes/levels/base_level.gd
+++ b/scenes/levels/base_level.gd
@@ -5,6 +5,7 @@ onready var pause_menu = $PauseMenu
# Called when the node enters the scene tree for the first time.
func _ready():
$Control/TextReveal.start()
+ $healthbar.set_health(2)
func _on_MenuButton_on_click():
pause_menu.pause()
diff --git a/scenes/menu.tscn b/scenes/menu.tscn
index 7df0a7c..991e272 100644
--- a/scenes/menu.tscn
+++ b/scenes/menu.tscn
@@ -1,10 +1,20 @@
-[gd_scene load_steps=6 format=2]
+[gd_scene load_steps=10 format=2]
[ext_resource path="res://components/Logo.tscn" type="PackedScene" id=1]
[ext_resource path="res://components/button.tscn" type="PackedScene" id=2]
[ext_resource path="res://textures/backgrounds/background_grey.png" type="Texture" id=3]
[ext_resource path="res://textures/backgrounds/background_blue.png" type="Texture" id=4]
[ext_resource path="res://scenes/menu.gd" type="Script" id=5]
+[ext_resource path="res://textures/texts/name.png" type="Texture" id=6]
+[ext_resource path="res://textures/icons/light_bulb.png" type="Texture" id=7]
+[ext_resource path="res://textures/icons/light_bulb_r.png" type="Texture" id=8]
+
+[sub_resource type="AnimatedTexture" id=1]
+frames = 2
+fps = 1.0
+frame_0/texture = ExtResource( 7 )
+frame_1/texture = ExtResource( 8 )
+frame_1/delay_sec = 0.0
[node name="Node2D" type="Node2D"]
script = ExtResource( 5 )
@@ -30,7 +40,17 @@ text = "Start"
fixed_width = 150
[node name="Logo" parent="." instance=ExtResource( 1 )]
-position = Vector2( 640, 250 )
+position = Vector2( 255.566, 250 )
rotation = -1.74846e-07
+
+[node name="Sprite3" type="Sprite" parent="."]
+position = Vector2( 666.085, 247.613 )
+scale = Vector2( 4.14939, 4.14939 )
+texture = ExtResource( 6 )
+
+[node name="Sprite4" type="Sprite" parent="."]
+position = Vector2( 1081.89, 246.278 )
+scale = Vector2( 4.35795, 4.35795 )
+texture = SubResource( 1 )
[connection signal="on_click" from="Exit" to="." method="_on_Exit_on_click"]
[connection signal="on_click" from="Strart" to="." method="_on_Strart_on_click"]