Imported into Godot 4.3

This commit is contained in:
Alan Youngblood
2024-12-31 16:25:23 -05:00
parent a22832a709
commit 614376e369
65 changed files with 1239 additions and 1739 deletions

View File

@ -1,24 +1,24 @@
extends Control
var hearts = 4 setget set_hearts
var max_hearts = 4 setget set_max_hearts
var hearts = 4: set = set_hearts
var max_hearts = 4: set = set_max_hearts
onready var heartUIFull = $HeartUIFull
onready var heartUIEmpty = $HeartUIEmpty
@onready var heartUIFull = $HeartUIFull
@onready var heartUIEmpty = $HeartUIEmpty
func set_hearts(value):
hearts = clamp(value, 0, max_hearts)
if heartUIFull != null:
heartUIFull.rect_size.x = hearts * 15
heartUIFull.size.x = hearts * 15
func set_max_hearts(value):
max_hearts = max(value, 1)
self.hearts = min(hearts, max_hearts)
if heartUIEmpty != null:
heartUIEmpty.rect_size.x = max_hearts * 15
heartUIEmpty.size.x = max_hearts * 15
func _ready():
self.max_hearts = PlayerStats.max_health
self.hearts = PlayerStats.health
PlayerStats.connect("health_changed", self, "set_hearts")
PlayerStats.connect("max_health_changed", self, "set_max_hearts")
PlayerStats.connect("health_changed", Callable(self, "set_hearts"))
PlayerStats.connect("max_health_changed", Callable(self, "set_max_hearts"))

View File

@ -1,25 +1,25 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://UI/HealthUI.gd" type="Script" id=1]
[ext_resource path="res://UI/HeartUIEmpty.png" type="Texture" id=2]
[ext_resource path="res://UI/HeartUIFull.png" type="Texture" id=3]
[ext_resource path="res://UI/HeartUIEmpty.png" type="Texture2D" id=2]
[ext_resource path="res://UI/HeartUIFull.png" type="Texture2D" id=3]
[node name="HealthUI" type="Control"]
margin_left = 2.0
margin_top = 2.0
margin_right = 124.0
margin_bottom = 27.0
offset_left = 2.0
offset_top = 2.0
offset_right = 124.0
offset_bottom = 27.0
script = ExtResource( 1 )
[node name="HeartUIEmpty" type="TextureRect" parent="."]
margin_right = 59.0
margin_bottom = 12.0
offset_right = 59.0
offset_bottom = 12.0
texture = ExtResource( 2 )
stretch_mode = 2
[node name="HeartUIFull" type="TextureRect" parent="."]
margin_right = 60.0
margin_bottom = 11.0
offset_right = 60.0
offset_bottom = 11.0
texture = ExtResource( 3 )
expand = true
stretch_mode = 2

View File

@ -1,8 +1,9 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/HeartUIEmpty.png-417b0a6fe975644d9dba3671413f10e5.stex"
type="CompressedTexture2D"
uid="uid://7uhcli2ilhpt"
path="res://.godot/imported/HeartUIEmpty.png-417b0a6fe975644d9dba3671413f10e5.ctex"
metadata={
"vram_texture": false
}
@ -10,26 +11,24 @@ metadata={
[deps]
source_file="res://UI/HeartUIEmpty.png"
dest_files=[ "res://.import/HeartUIEmpty.png-417b0a6fe975644d9dba3671413f10e5.stex" ]
dest_files=["res://.godot/imported/HeartUIEmpty.png-417b0a6fe975644d9dba3671413f10e5.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/hdr_compression=1
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
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/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@ -1,8 +1,9 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/HeartUIFull.png-e9d9ebbeee52aaa00895457d920c0f53.stex"
type="CompressedTexture2D"
uid="uid://dltt4a7gu7so4"
path="res://.godot/imported/HeartUIFull.png-e9d9ebbeee52aaa00895457d920c0f53.ctex"
metadata={
"vram_texture": false
}
@ -10,26 +11,24 @@ metadata={
[deps]
source_file="res://UI/HeartUIFull.png"
dest_files=[ "res://.import/HeartUIFull.png-e9d9ebbeee52aaa00895457d920c0f53.stex" ]
dest_files=["res://.godot/imported/HeartUIFull.png-e9d9ebbeee52aaa00895457d920c0f53.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/hdr_compression=1
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
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/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@ -1,8 +1,9 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/TouchButtons1.png-61db002dc7148133f10efa981b4843c4.stex"
type="CompressedTexture2D"
uid="uid://beygnvmqonlay"
path="res://.godot/imported/TouchButtons1.png-61db002dc7148133f10efa981b4843c4.ctex"
metadata={
"vram_texture": false
}
@ -10,26 +11,24 @@ metadata={
[deps]
source_file="res://UI/TouchButtons1.png"
dest_files=[ "res://.import/TouchButtons1.png-61db002dc7148133f10efa981b4843c4.stex" ]
dest_files=["res://.godot/imported/TouchButtons1.png-61db002dc7148133f10efa981b4843c4.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/hdr_compression=1
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
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/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@ -1,8 +1,9 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/TouchButtons2.png-17acf752daaeba13c4dd892a9a83b696.stex"
type="CompressedTexture2D"
uid="uid://dkgjklvy4rgh1"
path="res://.godot/imported/TouchButtons2.png-17acf752daaeba13c4dd892a9a83b696.ctex"
metadata={
"vram_texture": false
}
@ -10,26 +11,24 @@ metadata={
[deps]
source_file="res://UI/TouchButtons2.png"
dest_files=[ "res://.import/TouchButtons2.png-17acf752daaeba13c4dd892a9a83b696.stex" ]
dest_files=["res://.godot/imported/TouchButtons2.png-17acf752daaeba13c4dd892a9a83b696.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/hdr_compression=1
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
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/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@ -1,8 +1,9 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/TouchButtons3.png-8d9113c5621e05d158461a5b8587a569.stex"
type="CompressedTexture2D"
uid="uid://nvkhwbmmaln7"
path="res://.godot/imported/TouchButtons3.png-8d9113c5621e05d158461a5b8587a569.ctex"
metadata={
"vram_texture": false
}
@ -10,26 +11,24 @@ metadata={
[deps]
source_file="res://UI/TouchButtons3.png"
dest_files=[ "res://.import/TouchButtons3.png-8d9113c5621e05d158461a5b8587a569.stex" ]
dest_files=["res://.godot/imported/TouchButtons3.png-8d9113c5621e05d158461a5b8587a569.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/hdr_compression=1
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
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/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@ -1,8 +1,9 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/TouchButtons4.png-e9ab46fcaee3536074c1902761cd3845.stex"
type="CompressedTexture2D"
uid="uid://dw062qxq6lw56"
path="res://.godot/imported/TouchButtons4.png-e9ab46fcaee3536074c1902761cd3845.ctex"
metadata={
"vram_texture": false
}
@ -10,26 +11,24 @@ metadata={
[deps]
source_file="res://UI/TouchButtons4.png"
dest_files=[ "res://.import/TouchButtons4.png-e9ab46fcaee3536074c1902761cd3845.stex" ]
dest_files=["res://.godot/imported/TouchButtons4.png-e9ab46fcaee3536074c1902761cd3845.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/hdr_compression=1
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
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/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@ -1,8 +1,9 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/TouchButtons5.png-2db35d4a57a19b391d821bb73c0a76b2.stex"
type="CompressedTexture2D"
uid="uid://csi3h5f352wsh"
path="res://.godot/imported/TouchButtons5.png-2db35d4a57a19b391d821bb73c0a76b2.ctex"
metadata={
"vram_texture": false
}
@ -10,26 +11,24 @@ metadata={
[deps]
source_file="res://UI/TouchButtons5.png"
dest_files=[ "res://.import/TouchButtons5.png-2db35d4a57a19b391d821bb73c0a76b2.stex" ]
dest_files=["res://.godot/imported/TouchButtons5.png-2db35d4a57a19b391d821bb73c0a76b2.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/hdr_compression=1
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
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/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@ -1,8 +1,9 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/TouchButtons6.png-e82b98fedffd326df041409a813c1afe.stex"
type="CompressedTexture2D"
uid="uid://bjc2hpt7n8n7"
path="res://.godot/imported/TouchButtons6.png-e82b98fedffd326df041409a813c1afe.ctex"
metadata={
"vram_texture": false
}
@ -10,26 +11,24 @@ metadata={
[deps]
source_file="res://UI/TouchButtons6.png"
dest_files=[ "res://.import/TouchButtons6.png-e82b98fedffd326df041409a813c1afe.stex" ]
dest_files=["res://.godot/imported/TouchButtons6.png-e82b98fedffd326df041409a813c1afe.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/hdr_compression=1
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
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/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1