added corpses and a wall building dissolve animation
This commit is contained in:
25
Scenes/corpse.tscn
Normal file
25
Scenes/corpse.tscn
Normal file
@ -0,0 +1,25 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://canrxnpxcugc2"]
|
||||
|
||||
[ext_resource type="Script" path="res://corpse.gd" id="1_hdqtp"]
|
||||
[ext_resource type="Texture2D" uid="uid://cdnhe2mi5c5ln" path="res://Assets/Textures/dead_eye_dog.png" id="2_6ext7"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_shai7"]
|
||||
|
||||
[node name="Node3D" type="RigidBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
||||
collision_layer = 0
|
||||
max_contacts_reported = 1
|
||||
contact_monitor = true
|
||||
script = ExtResource("1_hdqtp")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("SphereShape3D_shai7")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.355108, 0)
|
||||
pixel_size = 0.04
|
||||
billboard = 1
|
||||
texture_filter = 0
|
||||
texture = ExtResource("2_6ext7")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
30
Scenes/health_bar.tscn
Normal file
30
Scenes/health_bar.tscn
Normal file
@ -0,0 +1,30 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://hjq3nrnumklp"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://r202vo47jw1q" path="res://Assets/Textures/enemyhealth.png" id="1_x8m88"]
|
||||
[ext_resource type="Script" path="res://Scripts/health_bar.gd" id="2_m8c1f"]
|
||||
[ext_resource type="Gradient" uid="uid://dx7auy3oqw82t" path="res://health_bar_gradient.tres" id="3_dpmma"]
|
||||
|
||||
[node name="HealthBar" type="TextureProgressBar"]
|
||||
offset_right = 200.0
|
||||
offset_bottom = 200.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
step = 0.0
|
||||
value = 100.0
|
||||
fill_mode = 6
|
||||
texture_progress = ExtResource("1_x8m88")
|
||||
tint_progress = Color(0, 1, 0, 1)
|
||||
script = ExtResource("2_m8c1f")
|
||||
health_bar_gradient = ExtResource("3_dpmma")
|
||||
|
||||
[node name="PreviousHealthBar" type="TextureProgressBar" parent="."]
|
||||
z_index = -1
|
||||
layout_mode = 0
|
||||
offset_right = 200.0
|
||||
offset_bottom = 200.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
step = 0.0
|
||||
value = 100.0
|
||||
fill_mode = 6
|
||||
texture_progress = ExtResource("1_x8m88")
|
Reference in New Issue
Block a user