diff --git a/graphics/enemy/boss/stg_2600/head_broken.png b/graphics/enemy/boss/stg_2600/head_broken.png index 324b525..48c0641 100644 Binary files a/graphics/enemy/boss/stg_2600/head_broken.png and b/graphics/enemy/boss/stg_2600/head_broken.png differ diff --git a/graphics/enemy/boss/stg_2600/head_cracked.png b/graphics/enemy/boss/stg_2600/head_cracked.png index 5eef83c..ac11103 100644 Binary files a/graphics/enemy/boss/stg_2600/head_cracked.png and b/graphics/enemy/boss/stg_2600/head_cracked.png differ diff --git a/graphics/enemy/boss/stg_2600/head_intact.png b/graphics/enemy/boss/stg_2600/head_intact.png index e219ab2..b8255eb 100644 Binary files a/graphics/enemy/boss/stg_2600/head_intact.png and b/graphics/enemy/boss/stg_2600/head_intact.png differ diff --git a/graphics/enemy/boss/stg_2600/sg_2083.png b/graphics/enemy/boss/stg_2600/sg_2083.png index d11f0bf..f5b8ca0 100644 Binary files a/graphics/enemy/boss/stg_2600/sg_2083.png and b/graphics/enemy/boss/stg_2600/sg_2083.png differ diff --git a/graphics/hud/2083_energy_back.png b/graphics/hud/2083_energy_back.png new file mode 100644 index 0000000..7d44221 Binary files /dev/null and b/graphics/hud/2083_energy_back.png differ diff --git a/graphics/hud/2083_energy_back.png.import b/graphics/hud/2083_energy_back.png.import new file mode 100644 index 0000000..f7ad9c2 --- /dev/null +++ b/graphics/hud/2083_energy_back.png.import @@ -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 diff --git a/graphics/hud/2083_energy_filled.png b/graphics/hud/2083_energy_filled.png new file mode 100644 index 0000000..95f1101 Binary files /dev/null and b/graphics/hud/2083_energy_filled.png differ diff --git a/graphics/hud/2083_energy_filled.png.import b/graphics/hud/2083_energy_filled.png.import new file mode 100644 index 0000000..f40b60e --- /dev/null +++ b/graphics/hud/2083_energy_filled.png.import @@ -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 diff --git a/graphics/hud/2083_health_back.png b/graphics/hud/2083_health_back.png new file mode 100644 index 0000000..7222ec1 Binary files /dev/null and b/graphics/hud/2083_health_back.png differ diff --git a/graphics/hud/2083_health_back.png.import b/graphics/hud/2083_health_back.png.import new file mode 100644 index 0000000..c308a09 --- /dev/null +++ b/graphics/hud/2083_health_back.png.import @@ -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 diff --git a/graphics/hud/2083_health_filled.png b/graphics/hud/2083_health_filled.png new file mode 100644 index 0000000..6e00191 Binary files /dev/null and b/graphics/hud/2083_health_filled.png differ diff --git a/graphics/hud/2083_health_filled.png.import b/graphics/hud/2083_health_filled.png.import new file mode 100644 index 0000000..ca86966 --- /dev/null +++ b/graphics/hud/2083_health_filled.png.import @@ -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 diff --git a/graphics/hud/boss_health_back.png b/graphics/hud/boss_health_back.png new file mode 100644 index 0000000..46218a7 Binary files /dev/null and b/graphics/hud/boss_health_back.png differ diff --git a/graphics/hud/boss_health_back.png.import b/graphics/hud/boss_health_back.png.import new file mode 100644 index 0000000..4523486 --- /dev/null +++ b/graphics/hud/boss_health_back.png.import @@ -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 diff --git a/graphics/hud/famira_health_back.png b/graphics/hud/famira_health_back.png new file mode 100644 index 0000000..a3c9a9c Binary files /dev/null and b/graphics/hud/famira_health_back.png differ diff --git a/graphics/hud/famira_health_back.png.import b/graphics/hud/famira_health_back.png.import new file mode 100644 index 0000000..58ff57d --- /dev/null +++ b/graphics/hud/famira_health_back.png.import @@ -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 diff --git a/graphics/hud/famira_health_bar.png b/graphics/hud/famira_health_bar.png new file mode 100644 index 0000000..a6e3946 Binary files /dev/null and b/graphics/hud/famira_health_bar.png differ diff --git a/graphics/hud/famira_health_bar.png.import b/graphics/hud/famira_health_bar.png.import new file mode 100644 index 0000000..e9a001b --- /dev/null +++ b/graphics/hud/famira_health_bar.png.import @@ -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 diff --git a/graphics/hud/famira_health_bar_filled.png.import b/graphics/hud/famira_health_bar_filled.png.import new file mode 100644 index 0000000..3bf8b7c --- /dev/null +++ b/graphics/hud/famira_health_bar_filled.png.import @@ -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 diff --git a/graphics/hud/famira_health_filled.png b/graphics/hud/famira_health_filled.png new file mode 100644 index 0000000..db1fc92 Binary files /dev/null and b/graphics/hud/famira_health_filled.png differ diff --git a/graphics/hud/famira_health_filled.png.import b/graphics/hud/famira_health_filled.png.import new file mode 100644 index 0000000..0ffe6c6 --- /dev/null +++ b/graphics/hud/famira_health_filled.png.import @@ -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 diff --git a/graphics/hud/laser_ok.png b/graphics/hud/laser_ok.png new file mode 100644 index 0000000..be5142c Binary files /dev/null and b/graphics/hud/laser_ok.png differ diff --git a/graphics/hud/laser_ok.png.import b/graphics/hud/laser_ok.png.import new file mode 100644 index 0000000..7e74a1b --- /dev/null +++ b/graphics/hud/laser_ok.png.import @@ -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 diff --git a/graphics/hud/laser_ok_text.png b/graphics/hud/laser_ok_text.png new file mode 100644 index 0000000..a030046 Binary files /dev/null and b/graphics/hud/laser_ok_text.png differ diff --git a/graphics/hud/laser_ok_text.png.import b/graphics/hud/laser_ok_text.png.import new file mode 100644 index 0000000..c4193ea --- /dev/null +++ b/graphics/hud/laser_ok_text.png.import @@ -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 diff --git a/maps/boss/boss3_arena.gd b/maps/boss/boss3_arena.gd index 51164d7..4b3ab8a 100644 --- a/maps/boss/boss3_arena.gd +++ b/maps/boss/boss3_arena.gd @@ -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: diff --git a/maps/boss/boss3_arena.tscn b/maps/boss/boss3_arena.tscn index d1501ea..1b435ed 100644 --- a/maps/boss/boss3_arena.tscn +++ b/maps/boss/boss3_arena.tscn @@ -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 ) diff --git a/objects/enemy/2083_bullet.gd b/objects/enemy/2083_bullet.gd index 91fc179..9ae0fbf 100644 --- a/objects/enemy/2083_bullet.gd +++ b/objects/enemy/2083_bullet.gd @@ -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()