From 26900b16664922203ad658f0f561624114ac601d Mon Sep 17 00:00:00 2001 From: Jonas Bernard Date: Sun, 25 Apr 2021 13:06:51 +0200 Subject: Name --- .../base.png-ab6db0702a6eccad894e5c01a6efa104.md5 | 4 +-- .../base.png-ab6db0702a6eccad894e5c01a6efa104.stex | Bin 1051 -> 1024 bytes ...t_bulb.png-5772eeb96ec3ec0cdc4e5525e056ff36.md5 | 3 ++ ..._bulb.png-5772eeb96ec3ec0cdc4e5525e056ff36.stex | Bin 0 -> 1034 bytes ...bulb_r.png-3f8999df551aa39f1ce881714c478c48.md5 | 3 ++ ...ulb_r.png-3f8999df551aa39f1ce881714c478c48.stex | Bin 0 -> 1112 bytes ...ogo_bg.png-8eba49bf5b641912553ec27e22cf7b4b.md5 | 4 +-- ...go_bg.png-8eba49bf5b641912553ec27e22cf7b4b.stex | Bin 1032 -> 1008 bytes ...parent.png-2553e4311c5af8674c84999f7148cda0.md5 | 4 +-- ...arent.png-2553e4311c5af8674c84999f7148cda0.stex | Bin 1142 -> 1133 bytes .../name.png-4d09aebbcefe71c7a098288a19fce534.md5 | 3 ++ .../name.png-4d09aebbcefe71c7a098288a19fce534.stex | Bin 0 -> 1496 bytes components/healthbar/heart.gd | 2 +- scenes/levels/base_level.gd | 1 + scenes/menu.tscn | 24 +++++++++++++-- textures/icons/light_bulb.png | Bin 0 -> 1053 bytes textures/icons/light_bulb.png.import | 34 +++++++++++++++++++++ textures/icons/light_bulb.xcf | Bin 0 -> 7862 bytes textures/icons/light_bulb_r.png | Bin 0 -> 1153 bytes textures/icons/light_bulb_r.png.import | 34 +++++++++++++++++++++ textures/icons/light_bulb_r.xcf | Bin 0 -> 15037 bytes textures/icons/logo/layers/base.png | Bin 1226 -> 1199 bytes textures/icons/logo/logo.xcf | Bin 13291 -> 13244 bytes textures/icons/logo/logo_bg.png | Bin 1418 -> 1391 bytes textures/icons/logo/logo_tansparent.png | Bin 1307 -> 1280 bytes textures/texts/name.png | Bin 0 -> 1496 bytes textures/texts/name.png.import | 34 +++++++++++++++++++++ textures/texts/name.xcf | Bin 0 -> 27469 bytes 28 files changed, 141 insertions(+), 9 deletions(-) create mode 100644 .import/light_bulb.png-5772eeb96ec3ec0cdc4e5525e056ff36.md5 create mode 100644 .import/light_bulb.png-5772eeb96ec3ec0cdc4e5525e056ff36.stex create mode 100644 .import/light_bulb_r.png-3f8999df551aa39f1ce881714c478c48.md5 create mode 100644 .import/light_bulb_r.png-3f8999df551aa39f1ce881714c478c48.stex create mode 100644 .import/name.png-4d09aebbcefe71c7a098288a19fce534.md5 create mode 100644 .import/name.png-4d09aebbcefe71c7a098288a19fce534.stex create mode 100644 textures/icons/light_bulb.png create mode 100644 textures/icons/light_bulb.png.import create mode 100644 textures/icons/light_bulb.xcf create mode 100644 textures/icons/light_bulb_r.png create mode 100644 textures/icons/light_bulb_r.png.import create mode 100644 textures/icons/light_bulb_r.xcf create mode 100644 textures/texts/name.png create mode 100644 textures/texts/name.png.import create mode 100644 textures/texts/name.xcf diff --git a/.import/base.png-ab6db0702a6eccad894e5c01a6efa104.md5 b/.import/base.png-ab6db0702a6eccad894e5c01a6efa104.md5 index 891b0e8..4bf60bf 100644 --- a/.import/base.png-ab6db0702a6eccad894e5c01a6efa104.md5 +++ b/.import/base.png-ab6db0702a6eccad894e5c01a6efa104.md5 @@ -1,3 +1,3 @@ -source_md5="5d82b0cfc0d276ec9cf21e3a6c3935c2" -dest_md5="37fce06cf6174120a6b74d1d91c6615e" +source_md5="ed64a5d37b1ea7d8d782b1aaf3d4ce46" +dest_md5="e0439c9b0c35759e39a9a05133ddc872" diff --git a/.import/base.png-ab6db0702a6eccad894e5c01a6efa104.stex b/.import/base.png-ab6db0702a6eccad894e5c01a6efa104.stex index 49207ca..0931e65 100644 Binary files a/.import/base.png-ab6db0702a6eccad894e5c01a6efa104.stex and b/.import/base.png-ab6db0702a6eccad894e5c01a6efa104.stex differ diff --git a/.import/light_bulb.png-5772eeb96ec3ec0cdc4e5525e056ff36.md5 b/.import/light_bulb.png-5772eeb96ec3ec0cdc4e5525e056ff36.md5 new file mode 100644 index 0000000..c5a0851 --- /dev/null +++ b/.import/light_bulb.png-5772eeb96ec3ec0cdc4e5525e056ff36.md5 @@ -0,0 +1,3 @@ +source_md5="e19d3c37af640053b9fa4bc589ebadaa" +dest_md5="9fa8561ad161cdc7770486d7dc23934f" + diff --git a/.import/light_bulb.png-5772eeb96ec3ec0cdc4e5525e056ff36.stex b/.import/light_bulb.png-5772eeb96ec3ec0cdc4e5525e056ff36.stex new file mode 100644 index 0000000..c833fbf Binary files /dev/null and b/.import/light_bulb.png-5772eeb96ec3ec0cdc4e5525e056ff36.stex differ diff --git a/.import/light_bulb_r.png-3f8999df551aa39f1ce881714c478c48.md5 b/.import/light_bulb_r.png-3f8999df551aa39f1ce881714c478c48.md5 new file mode 100644 index 0000000..ef93677 --- /dev/null +++ b/.import/light_bulb_r.png-3f8999df551aa39f1ce881714c478c48.md5 @@ -0,0 +1,3 @@ +source_md5="ffeb355141ae4d0c680c798d8fefe0cb" +dest_md5="9821de091738807977d583051cb88390" + diff --git a/.import/light_bulb_r.png-3f8999df551aa39f1ce881714c478c48.stex b/.import/light_bulb_r.png-3f8999df551aa39f1ce881714c478c48.stex new file mode 100644 index 0000000..9c5f1c9 Binary files /dev/null and b/.import/light_bulb_r.png-3f8999df551aa39f1ce881714c478c48.stex differ diff --git a/.import/logo_bg.png-8eba49bf5b641912553ec27e22cf7b4b.md5 b/.import/logo_bg.png-8eba49bf5b641912553ec27e22cf7b4b.md5 index 2e237cb..0465435 100644 --- a/.import/logo_bg.png-8eba49bf5b641912553ec27e22cf7b4b.md5 +++ b/.import/logo_bg.png-8eba49bf5b641912553ec27e22cf7b4b.md5 @@ -1,3 +1,3 @@ -source_md5="8900c8b574a4230ba367a845d72d5457" -dest_md5="ff5ea3d8685a5aad35940e0004d9be61" +source_md5="dbff4b2a94a085a2af371297b470161b" +dest_md5="8e6936662ea2e5506e51886701bd7d04" diff --git a/.import/logo_bg.png-8eba49bf5b641912553ec27e22cf7b4b.stex b/.import/logo_bg.png-8eba49bf5b641912553ec27e22cf7b4b.stex index b5ec41e..d9eca1d 100644 Binary files a/.import/logo_bg.png-8eba49bf5b641912553ec27e22cf7b4b.stex and b/.import/logo_bg.png-8eba49bf5b641912553ec27e22cf7b4b.stex differ diff --git a/.import/logo_tansparent.png-2553e4311c5af8674c84999f7148cda0.md5 b/.import/logo_tansparent.png-2553e4311c5af8674c84999f7148cda0.md5 index 20e663b..b29226b 100644 --- a/.import/logo_tansparent.png-2553e4311c5af8674c84999f7148cda0.md5 +++ b/.import/logo_tansparent.png-2553e4311c5af8674c84999f7148cda0.md5 @@ -1,3 +1,3 @@ -source_md5="68eb97c994b8792ec2ac5fa1d15f3822" -dest_md5="bc93fc48a878b6c34337994d23ec0413" +source_md5="97eecfc5cb104cc2bcfdc5ebc3bcbd26" +dest_md5="3f9c2aaa084f120517cb3766e5036cb6" diff --git a/.import/logo_tansparent.png-2553e4311c5af8674c84999f7148cda0.stex b/.import/logo_tansparent.png-2553e4311c5af8674c84999f7148cda0.stex index d06d2de..311bcf6 100644 Binary files a/.import/logo_tansparent.png-2553e4311c5af8674c84999f7148cda0.stex and b/.import/logo_tansparent.png-2553e4311c5af8674c84999f7148cda0.stex differ diff --git a/.import/name.png-4d09aebbcefe71c7a098288a19fce534.md5 b/.import/name.png-4d09aebbcefe71c7a098288a19fce534.md5 new file mode 100644 index 0000000..1ae6b52 --- /dev/null +++ b/.import/name.png-4d09aebbcefe71c7a098288a19fce534.md5 @@ -0,0 +1,3 @@ +source_md5="ba756bf535dab547e80193281afd36a2" +dest_md5="1ca158abacadbe0995d5ce2ebe51d798" + diff --git a/.import/name.png-4d09aebbcefe71c7a098288a19fce534.stex b/.import/name.png-4d09aebbcefe71c7a098288a19fce534.stex new file mode 100644 index 0000000..f6a27fe Binary files /dev/null and b/.import/name.png-4d09aebbcefe71c7a098288a19fce534.stex differ diff --git a/components/healthbar/heart.gd b/components/healthbar/heart.gd index 6177452..f2ecb65 100644 --- a/components/healthbar/heart.gd +++ b/components/healthbar/heart.gd @@ -6,7 +6,7 @@ onready var notfill = $notfill # Called when the node enters the scene tree for the first time. func _ready(): - pass # Replace with function body. + set_filled(false) func _process(delta): 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"] diff --git a/textures/icons/light_bulb.png b/textures/icons/light_bulb.png new file mode 100644 index 0000000..d075a7e Binary files /dev/null and b/textures/icons/light_bulb.png differ diff --git a/textures/icons/light_bulb.png.import b/textures/icons/light_bulb.png.import new file mode 100644 index 0000000..e4c5a46 --- /dev/null +++ b/textures/icons/light_bulb.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/light_bulb.png-5772eeb96ec3ec0cdc4e5525e056ff36.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://textures/icons/light_bulb.png" +dest_files=[ "res://.import/light_bulb.png-5772eeb96ec3ec0cdc4e5525e056ff36.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=false +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/textures/icons/light_bulb.xcf b/textures/icons/light_bulb.xcf new file mode 100644 index 0000000..978a10b Binary files /dev/null and b/textures/icons/light_bulb.xcf differ diff --git a/textures/icons/light_bulb_r.png b/textures/icons/light_bulb_r.png new file mode 100644 index 0000000..dc0b303 Binary files /dev/null and b/textures/icons/light_bulb_r.png differ diff --git a/textures/icons/light_bulb_r.png.import b/textures/icons/light_bulb_r.png.import new file mode 100644 index 0000000..1b1c32b --- /dev/null +++ b/textures/icons/light_bulb_r.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/light_bulb_r.png-3f8999df551aa39f1ce881714c478c48.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://textures/icons/light_bulb_r.png" +dest_files=[ "res://.import/light_bulb_r.png-3f8999df551aa39f1ce881714c478c48.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=false +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/textures/icons/light_bulb_r.xcf b/textures/icons/light_bulb_r.xcf new file mode 100644 index 0000000..fe1f1d2 Binary files /dev/null and b/textures/icons/light_bulb_r.xcf differ diff --git a/textures/icons/logo/layers/base.png b/textures/icons/logo/layers/base.png index 6f45029..3d3198d 100644 Binary files a/textures/icons/logo/layers/base.png and b/textures/icons/logo/layers/base.png differ diff --git a/textures/icons/logo/logo.xcf b/textures/icons/logo/logo.xcf index 345447e..c67e1bb 100644 Binary files a/textures/icons/logo/logo.xcf and b/textures/icons/logo/logo.xcf differ diff --git a/textures/icons/logo/logo_bg.png b/textures/icons/logo/logo_bg.png index 4200174..3d096c5 100644 Binary files a/textures/icons/logo/logo_bg.png and b/textures/icons/logo/logo_bg.png differ diff --git a/textures/icons/logo/logo_tansparent.png b/textures/icons/logo/logo_tansparent.png index a427f97..91b3334 100644 Binary files a/textures/icons/logo/logo_tansparent.png and b/textures/icons/logo/logo_tansparent.png differ diff --git a/textures/texts/name.png b/textures/texts/name.png new file mode 100644 index 0000000..66bb283 Binary files /dev/null and b/textures/texts/name.png differ diff --git a/textures/texts/name.png.import b/textures/texts/name.png.import new file mode 100644 index 0000000..03ddb3c --- /dev/null +++ b/textures/texts/name.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/name.png-4d09aebbcefe71c7a098288a19fce534.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://textures/texts/name.png" +dest_files=[ "res://.import/name.png-4d09aebbcefe71c7a098288a19fce534.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=false +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/textures/texts/name.xcf b/textures/texts/name.xcf new file mode 100644 index 0000000..2531d86 Binary files /dev/null and b/textures/texts/name.xcf differ -- cgit