Mejora de combate con boss
This commit is contained in:
1 parent
f414d43a37
commit
d983bc2e69
11 files changed
+1076
-77
No files matched your search
@@ -1,9 +1,29 @@
|
||||
[gd_scene load_steps=3 format=3]
|
||||
[gd_scene load_steps=8 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://bosses/spectral_death/spectral_death.gd" id="boss"]
|
||||
[ext_resource type="SpriteFrames" path="res://assets/bosses/muerte/muerte_frames.tres" id="frames"]
|
||||
[ext_resource type="Texture2D" path="res://assets/bosses/muerte/spectral_scythe.svg" id="scythe"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="hurt_shape"]
|
||||
size = Vector2(118, 204)
|
||||
size = Vector2(154, 270)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="hud_panel"]
|
||||
bg_color = Color(0.08, 0.045, 0.13, 0.85)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(0.53, 0.36, 0.68, 0.95)
|
||||
corner_radius_top_left = 7
|
||||
corner_radius_top_right = 7
|
||||
corner_radius_bottom_right = 7
|
||||
corner_radius_bottom_left = 7
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="bar_empty"]
|
||||
bg_color = Color(0.17, 0.11, 0.22, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="bar_fill"]
|
||||
bg_color = Color(0.61, 0.91, 0.78, 1)
|
||||
|
||||
[node name="SpectralDeath" type="Node2D" groups=["enemy"]]
|
||||
script = ExtResource("boss")
|
||||
@@ -16,8 +36,29 @@ monitoring = false
|
||||
monitorable = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hurtbox"]
|
||||
position = Vector2(0, -12)
|
||||
shape = SubResource("hurt_shape")
|
||||
|
||||
[node name="Body" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(0, -26)
|
||||
scale = Vector2(1.14, 1.14)
|
||||
sprite_frames = ExtResource("frames")
|
||||
animation = &"idle"
|
||||
autoplay = "idle"
|
||||
|
||||
[node name="WeaponPivot" type="Node2D" parent="."]
|
||||
position = Vector2(-69, -32)
|
||||
|
||||
[node name="HeldScythe" type="Sprite2D" parent="WeaponPivot"]
|
||||
texture = ExtResource("scythe")
|
||||
offset = Vector2(30, -73)
|
||||
scale = Vector2(1.25, 1.25)
|
||||
|
||||
[node name="ThrownScythe" type="Sprite2D" parent="."]
|
||||
visible = false
|
||||
texture = ExtResource("scythe")
|
||||
scale = Vector2(1.2, 1.2)
|
||||
|
||||
[node name="BossHUD" type="CanvasLayer" parent="."]
|
||||
visible = false
|
||||
layer = 3
|
||||
@@ -28,31 +69,44 @@ anchor_right = 1.0
|
||||
offset_left = 64.0
|
||||
offset_top = 22.0
|
||||
offset_right = -64.0
|
||||
offset_bottom = 82.0
|
||||
offset_bottom = 90.0
|
||||
theme_override_styles/panel = SubResource("hud_panel")
|
||||
|
||||
[node name="Rows" type="VBoxContainer" parent="BossHUD/Panel"]
|
||||
theme_override_constants/separation = 7
|
||||
|
||||
[node name="Status" type="Label" parent="BossHUD/Panel/Rows"]
|
||||
theme_override_colors/font_color = Color(0.91, 0.95, 0.92, 1)
|
||||
theme_override_font_sizes/font_size = 21
|
||||
text = "LA MUERTE ESPECTRAL"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Bars" type="HBoxContainer" parent="BossHUD/Panel/Rows"]
|
||||
theme_override_constants/separation = 6
|
||||
theme_override_constants/separation = 8
|
||||
|
||||
[node name="Life1" type="ProgressBar" parent="BossHUD/Panel/Rows/Bars"]
|
||||
custom_minimum_size = Vector2(0, 14)
|
||||
size_flags_horizontal = 3
|
||||
theme_override_styles/background = SubResource("bar_empty")
|
||||
theme_override_styles/fill = SubResource("bar_fill")
|
||||
max_value = 40.0
|
||||
value = 40.0
|
||||
show_percentage = false
|
||||
|
||||
[node name="Life2" type="ProgressBar" parent="BossHUD/Panel/Rows/Bars"]
|
||||
custom_minimum_size = Vector2(0, 14)
|
||||
size_flags_horizontal = 3
|
||||
theme_override_styles/background = SubResource("bar_empty")
|
||||
theme_override_styles/fill = SubResource("bar_fill")
|
||||
max_value = 40.0
|
||||
value = 40.0
|
||||
show_percentage = false
|
||||
|
||||
[node name="Life3" type="ProgressBar" parent="BossHUD/Panel/Rows/Bars"]
|
||||
custom_minimum_size = Vector2(0, 14)
|
||||
size_flags_horizontal = 3
|
||||
theme_override_styles/background = SubResource("bar_empty")
|
||||
theme_override_styles/fill = SubResource("bar_fill")
|
||||
max_value = 40.0
|
||||
value = 40.0
|
||||
show_percentage = false
|
||||
Reference in new issue
Block a user