Healthbar Sprites

This commit is contained in:
RealMelwei 2025-09-17 17:51:54 +02:00
parent 040bbdc677
commit 8fbaf0c282
10 changed files with 147 additions and 7 deletions

View file

@ -1,16 +1,20 @@
[gd_scene load_steps=3 format=3 uid="uid://em0xambhywfv"]
[gd_scene load_steps=4 format=3 uid="uid://em0xambhywfv"]
[ext_resource type="Script" uid="uid://c60wm212fu1ti" path="res://healthbar/heart.gd" id="1_c17c5"]
[ext_resource type="Texture2D" uid="uid://cy70quh6k3s1j" path="res://icon.svg" id="1_kepki"]
[ext_resource type="Texture2D" uid="uid://djfc7sdc8wxp6" path="res://player/Heart_cut.png" id="2_885dn"]
[ext_resource type="Texture2D" uid="uid://ctwu08w867gax" path="res://player/Heart_cut Grey.png" id="3_4yb2p"]
[node name="Heart" type="MarginContainer"]
offset_right = 64.0
offset_bottom = 64.0
script = ExtResource("1_c17c5")
[node name="UP" type="TextureRect" parent="."]
layout_mode = 2
texture = ExtResource("1_kepki")
texture = ExtResource("2_885dn")
expand_mode = 3
[node name="DOWN" type="TextureRect" parent="."]
modulate = Color(0.03137255, 0.21568628, 0.28627452, 1)
layout_mode = 2
texture = ExtResource("1_kepki")
texture = ExtResource("3_4yb2p")
expand_mode = 3

View file

@ -45,8 +45,8 @@ autostart = true
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="Healthbar" parent="CanvasLayer" instance=ExtResource("6_7mycd")]
offset_right = 128.0
offset_bottom = 128.0
offset_right = 96.0
offset_bottom = 96.0
[node name="ItemUI" parent="CanvasLayer" node_paths=PackedStringArray("player") instance=ExtResource("6_4c57u")]
player = NodePath("../../Player")

BIN
player/Heart Grey.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 B

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://chsx3yjgb33md"
path="res://.godot/imported/Heart Grey.png-6b86b8edc4802c3a483d9a14eb7ce196.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://player/Heart Grey.png"
dest_files=["res://.godot/imported/Heart Grey.png-6b86b8edc4802c3a483d9a14eb7ce196.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
player/Heart.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 695 B

34
player/Heart.png.import Normal file
View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://d4j1esxewsots"
path="res://.godot/imported/Heart.png-33902e9ff8206d83f93ea6d088b4a1bc.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://player/Heart.png"
dest_files=["res://.godot/imported/Heart.png-33902e9ff8206d83f93ea6d088b4a1bc.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
player/Heart_cut Grey.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ctwu08w867gax"
path="res://.godot/imported/Heart_cut Grey.png-b4b9be15b5a8a36395d31eba43aa5a0c.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://player/Heart_cut Grey.png"
dest_files=["res://.godot/imported/Heart_cut Grey.png-b4b9be15b5a8a36395d31eba43aa5a0c.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
player/Heart_cut.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://djfc7sdc8wxp6"
path="res://.godot/imported/Heart_cut.png-f11ef12fc6c55a0077b5ba659ce17adf.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://player/Heart_cut.png"
dest_files=["res://.godot/imported/Heart_cut.png-f11ef12fc6c55a0077b5ba659ce17adf.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1