new health bars wow

This commit is contained in:
pennyrigate 2024-06-13 16:38:19 -04:00
parent 9e8abe19ef
commit 828a4ccecc
28 changed files with 466 additions and 70 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 B

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/2083_energy_back.png-11dd98a9d72b54c8260155992faf6158.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://graphics/hud/2083_energy_back.png"
dest_files=[ "res://.import/2083_energy_back.png-11dd98a9d72b54c8260155992faf6158.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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/2083_energy_filled.png-33bce25982854ea73e3364035f2d3a2b.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://graphics/hud/2083_energy_filled.png"
dest_files=[ "res://.import/2083_energy_filled.png-33bce25982854ea73e3364035f2d3a2b.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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 B

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/2083_health_back.png-5fcc5a99e8ed1532568696eb69fd0d43.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://graphics/hud/2083_health_back.png"
dest_files=[ "res://.import/2083_health_back.png-5fcc5a99e8ed1532568696eb69fd0d43.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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/2083_health_filled.png-44b40a17a023454bbb8170346f74b17f.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://graphics/hud/2083_health_filled.png"
dest_files=[ "res://.import/2083_health_filled.png-44b40a17a023454bbb8170346f74b17f.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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/boss_health_back.png-c5ec975a0abf1a1c0a45705fcc5f82b7.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://graphics/hud/boss_health_back.png"
dest_files=[ "res://.import/boss_health_back.png-c5ec975a0abf1a1c0a45705fcc5f82b7.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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/famira_health_back.png-e56d7b671e52edb71218a9a73df2de68.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://graphics/hud/famira_health_back.png"
dest_files=[ "res://.import/famira_health_back.png-e56d7b671e52edb71218a9a73df2de68.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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/famira_health_bar.png-063ac979690728319544ff2981510039.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://graphics/hud/famira_health_bar.png"
dest_files=[ "res://.import/famira_health_bar.png-063ac979690728319544ff2981510039.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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/famira_health_bar_filled.png-b876077097f24cd200f1d2d915a33255.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://graphics/hud/famira_health_bar_filled.png"
dest_files=[ "res://.import/famira_health_bar_filled.png-b876077097f24cd200f1d2d915a33255.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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 804 B

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/famira_health_filled.png-a06f76ad0a946df51e9ccad3452b0465.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://graphics/hud/famira_health_filled.png"
dest_files=[ "res://.import/famira_health_filled.png-a06f76ad0a946df51e9ccad3452b0465.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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
graphics/hud/laser_ok.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/laser_ok.png-126e4d7df435412bb6a8cf636d6c3b24.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://graphics/hud/laser_ok.png"
dest_files=[ "res://.import/laser_ok.png-126e4d7df435412bb6a8cf636d6c3b24.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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/laser_ok_text.png-d6af5ac9f51f62aab017a6b2e8ec549a.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://graphics/hud/laser_ok_text.png"
dest_files=[ "res://.import/laser_ok_text.png-d6af5ac9f51f62aab017a6b2e8ec549a.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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View file

@ -1,9 +1,9 @@
extends "res://maps/map.gd"
onready var sg_health: HSlider = $"%SGHealth"
onready var sg_energy: HSlider = $"%SGEnergy"
onready var fami_health: HSlider = $"%FamiHealth"
onready var sg_health: TextureProgress = $"%SGHealthBar"
onready var sg_energy: TextureProgress = $"%SGEnergyBar"
onready var fami_health: TextureProgress = $"%FamiHealthBar"
onready var sg2083: KinematicBody2D = $"2083"
onready var famira: Node2D = $Famira
@ -13,13 +13,15 @@ func _ready() -> void:
sg2083.state = sg2083.State.INACTIVE
famira.animation_player.play("grow", -1.0, 0.0)
func _process(delta):
sg_energy.value -= 1
func _on_2083_health_changed(amount) -> void:
sg_health.value = amount
func _on_Famira_health_changed(amount) -> void:
fami_health.value = -amount
fami_health.value = amount
func _on_cutscene_finished() -> void:

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=12 format=2]
[gd_scene load_steps=20 format=2]
[ext_resource path="res://objects/enemy/boss/sg2083.tscn" type="PackedScene" id=1]
[ext_resource path="res://tilesets/t_laboratory.tres" type="TileSet" id=2]
@ -9,6 +9,14 @@
[ext_resource path="res://cutscenes/fami_cutscene.tscn" type="PackedScene" id=7]
[ext_resource path="res://objects/lore/boss/fami.tscn" type="PackedScene" id=8]
[ext_resource path="res://graphics/backgrounds/fami_rooftop.png" type="Texture" id=9]
[ext_resource path="res://graphics/hud/laser_ok.png" type="Texture" id=10]
[ext_resource path="res://ui/2ndpuberty_outline.tres" type="Material" id=11]
[ext_resource path="res://graphics/hud/2083_energy_back.png" type="Texture" id=12]
[ext_resource path="res://graphics/hud/famira_health_filled.png" type="Texture" id=13]
[ext_resource path="res://graphics/hud/famira_health_back.png" type="Texture" id=14]
[ext_resource path="res://graphics/hud/2083_energy_filled.png" type="Texture" id=15]
[ext_resource path="res://graphics/hud/2083_health_filled.png" type="Texture" id=16]
[ext_resource path="res://graphics/hud/2083_health_back.png" type="Texture" id=17]
[sub_resource type="Animation" id=1]
length = 0.001
@ -177,85 +185,87 @@ centered = false
offset = Vector2( -128, 0 )
[node name="GUI" type="CanvasLayer" parent="."]
visible = false
[node name="Control" type="HBoxContainer" parent="GUI"]
[node name="Control" type="Control" parent="GUI"]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 5 )
[node name="VBoxContainer" type="VBoxContainer" parent="GUI/Control"]
margin_right = 126.0
margin_bottom = 192.0
size_flags_horizontal = 3
alignment = 2
[node name="HBoxContainer2" type="HBoxContainer" parent="GUI/Control/VBoxContainer"]
margin_top = 168.0
margin_right = 126.0
[node name="Energy" type="Control" parent="GUI/Control"]
margin_left = 8.0
margin_top = 167.0
margin_right = 161.0
margin_bottom = 178.0
[node name="Label" type="Label" parent="GUI/Control/VBoxContainer/HBoxContainer2"]
margin_right = 49.0
margin_bottom = 10.0
[node name="SGEnergyBar" type="TextureProgress" parent="GUI/Control/Energy"]
unique_name_in_owner = true
margin_right = 153.0
margin_bottom = 11.0
size_flags_horizontal = 3
value = 100.0
texture_under = ExtResource( 12 )
texture_progress = ExtResource( 15 )
[node name="Label" type="Label" parent="GUI/Control/Energy"]
material = ExtResource( 11 )
margin_left = -7.0
margin_top = 11.0
margin_right = 146.0
margin_bottom = 21.0
text = " Energy"
[node name="SGEnergy" type="HSlider" parent="GUI/Control/VBoxContainer/HBoxContainer2"]
[node name="LaserBack" type="TextureRect" parent="GUI/Control/Energy"]
margin_left = 60.0
margin_top = 11.0
margin_right = 100.0
margin_bottom = 22.0
texture = ExtResource( 10 )
[node name="FamiHealth" type="Control" parent="GUI/Control/Energy"]
margin_left = 140.0
margin_top = -163.0
margin_right = 286.0
margin_bottom = -152.0
[node name="FamiHealthBar" type="TextureProgress" parent="GUI/Control/Energy/FamiHealth"]
unique_name_in_owner = true
margin_left = 53.0
margin_right = 126.0
margin_bottom = 10.0
margin_right = 146.0
margin_bottom = 11.0
size_flags_horizontal = 3
value = 100.0
scrollable = false
texture_under = ExtResource( 14 )
texture_progress = ExtResource( 13 )
[node name="HBoxContainer" type="HBoxContainer" parent="GUI/Control/VBoxContainer"]
margin_top = 182.0
margin_right = 126.0
margin_bottom = 192.0
[node name="Label" type="Label" parent="GUI/Control/VBoxContainer/HBoxContainer"]
margin_right = 49.0
margin_bottom = 10.0
text = "SG 2083"
[node name="SGHealth" type="HSlider" parent="GUI/Control/VBoxContainer/HBoxContainer"]
unique_name_in_owner = true
margin_left = 53.0
margin_right = 126.0
margin_bottom = 10.0
size_flags_horizontal = 3
value = 100.0
scrollable = false
[node name="VBoxContainer2" type="VBoxContainer" parent="GUI/Control"]
margin_left = 130.0
margin_right = 256.0
margin_bottom = 192.0
size_flags_horizontal = 3
alignment = 2
[node name="HBoxContainer" type="HBoxContainer" parent="GUI/Control/VBoxContainer2"]
margin_top = 182.0
margin_right = 126.0
margin_bottom = 192.0
[node name="FamiHealth" type="HSlider" parent="GUI/Control/VBoxContainer2/HBoxContainer"]
unique_name_in_owner = true
margin_right = 80.0
margin_bottom = 10.0
size_flags_horizontal = 3
min_value = -100.0
max_value = 0.0
value = -100.0
scrollable = false
[node name="Label" type="Label" parent="GUI/Control/VBoxContainer2/HBoxContainer"]
margin_left = 84.0
margin_right = 126.0
margin_bottom = 10.0
[node name="Label" type="Label" parent="GUI/Control/Energy/FamiHealth"]
material = ExtResource( 11 )
margin_left = 58.0
margin_top = 11.0
margin_right = 204.0
margin_bottom = 21.0
text = "Famira"
[node name="SGHealth" type="Control" parent="GUI/Control"]
margin_left = 8.0
margin_top = 4.0
margin_right = 407.0
margin_bottom = 192.0
[node name="SGHealthBar" type="TextureProgress" parent="GUI/Control/SGHealth"]
unique_name_in_owner = true
margin_right = 399.0
margin_bottom = 11.0
size_flags_horizontal = 3
value = 100.0
texture_under = ExtResource( 17 )
texture_progress = ExtResource( 16 )
[node name="Label" type="Label" parent="GUI/Control/SGHealth"]
material = ExtResource( 11 )
margin_top = 11.0
margin_right = 399.0
margin_bottom = 21.0
text = "SG 2083"
[node name="TileMap2" type="TileMap" parent="."]
tile_set = ExtResource( 6 )
cell_size = Vector2( 8, 8 )

View file

@ -14,7 +14,6 @@ func _physics_process(delta: float) -> void:
if lifetime < 10:
var r = rand_range(0,5)
sprite.position.y += sin(Game.time * 20)
print(lifetime)
func _exit_tree() -> void:
var explosion = SmallExplosion.instance()