Zombie death and damage indicators
This commit is contained in:
parent
bffb012a26
commit
b524f97e7f
14 changed files with 324 additions and 117 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=12 format=3 uid="uid://xu4i6tmkv00a"]
|
||||
[gd_scene load_steps=15 format=3 uid="uid://xu4i6tmkv00a"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://hhjbqkjqpt7x" path="res://scenes/entities/Zombies/cone_zombie.tscn" id="1_mwqpo"]
|
||||
[ext_resource type="Shader" uid="uid://d0eo5uuj222c4" path="res://assets/shaders/CG_color_blender.gdshader" id="2_3mrqj"]
|
||||
|
|
@ -8,6 +8,7 @@
|
|||
[ext_resource type="AudioStream" uid="uid://bu1egfsyplpx4" path="res://assets/audio/sfx/metalhit_generic.tres" id="5_lt6ps"]
|
||||
[ext_resource type="Texture2D" uid="uid://cmmpfi8ug43l2" path="res://assets/sprites/bucket3.tres" id="5_v1iwd"]
|
||||
[ext_resource type="AudioStream" uid="uid://w0qfwds4o3ti" path="res://assets/audio/sfx/hit_generic.tres" id="6_kedip"]
|
||||
[ext_resource type="Texture2D" uid="uid://dacgbwohpmeed" path="res://assets/sprites/zombies/basic.png" id="6_lea3a"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_wdi07"]
|
||||
resource_local_to_scene = true
|
||||
|
|
@ -15,6 +16,14 @@ shader = ExtResource("2_3mrqj")
|
|||
shader_parameter/blend_color = Color(1, 1, 1, 1)
|
||||
shader_parameter/amount = 0.0
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wfem3"]
|
||||
atlas = ExtResource("6_lea3a")
|
||||
region = Rect2(24, 2, 9, 9)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_auqeq"]
|
||||
atlas = ExtResource("6_lea3a")
|
||||
region = Rect2(0, 32, 9, 15)
|
||||
|
||||
[sub_resource type="Resource" id="Resource_2bm8y"]
|
||||
resource_local_to_scene = true
|
||||
script = ExtResource("4_1s2fn")
|
||||
|
|
@ -41,7 +50,7 @@ scale = Vector2(0.999912, 0.999912)
|
|||
scale = Vector2(0.999831, 0.999831)
|
||||
|
||||
[node name="RightLowerLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/RightUpperLeg" index="1"]
|
||||
scale = Vector2(0.999832, 0.999832)
|
||||
scale = Vector2(0.999833, 0.999833)
|
||||
|
||||
[node name="RightFoot" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/RightUpperLeg/RightLowerLeg" index="0"]
|
||||
scale = Vector2(0.999833, 0.999833)
|
||||
|
|
@ -50,42 +59,69 @@ scale = Vector2(0.999833, 0.999833)
|
|||
scale = Vector2(0.999834, 0.999834)
|
||||
|
||||
[node name="LeftLowerLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg" index="1"]
|
||||
scale = Vector2(0.999835, 0.999835)
|
||||
scale = Vector2(0.999836, 0.999836)
|
||||
|
||||
[node name="LeftFoot" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg/LeftLowerLeg" index="1"]
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
|
||||
[node name="Body" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="3"]
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
|
||||
[node name="RightUpperArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="0"]
|
||||
scale = Vector2(0.999826, 0.999826)
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
|
||||
[node name="RightLowerArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm" index="1"]
|
||||
scale = Vector2(0.999825, 0.999825)
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
|
||||
[node name="RightHand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm/RightLowerArm" index="0"]
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
|
||||
[node name="Head" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="3"]
|
||||
visible = false
|
||||
scale = Vector2(0.999826, 0.999826)
|
||||
|
||||
[node name="Jaw" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="0"]
|
||||
position = Vector2(-3, 3)
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
|
||||
[node name="Hat" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/Head" index="0"]
|
||||
position = Vector2(-4.00424, -6.00927)
|
||||
|
||||
[node name="Sprite" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/Head/Hat" index="0"]
|
||||
texture = ExtResource("3_0nlp0")
|
||||
degradationStages = Array[Texture]([ExtResource("3_0nlp0"), ExtResource("4_xx7fu"), ExtResource("5_v1iwd")])
|
||||
|
||||
[node name="Jaw" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head" index="1"]
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
|
||||
[node name="LeftUpperArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="4"]
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
[node name="Hat" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head" index="4"]
|
||||
position = Vector2(-6, -8)
|
||||
|
||||
[node name="LeftLowerArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm" index="1"]
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
[node name="Sprite" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/Hat" index="0"]
|
||||
position = Vector2(0.994479, -10.0058)
|
||||
texture = ExtResource("3_0nlp0")
|
||||
degradationStages = Array[Texture]([ExtResource("3_0nlp0"), ExtResource("4_xx7fu"), ExtResource("5_v1iwd")])
|
||||
|
||||
[node name="LeftUpperArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="4"]
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
|
||||
[node name="Left_Lower_Arm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/HandProjectile" index="0"]
|
||||
scale = Vector2(0.999998, 0.999998)
|
||||
|
||||
[node name="Left_Hand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/HandProjectile/Left_Lower_Arm" index="0"]
|
||||
show_behind_parent = false
|
||||
position = Vector2(-0.99983, 12.9978)
|
||||
scale = Vector2(0.999656, 0.999656)
|
||||
|
||||
[node name="LeftLowerArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm" index="2"]
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
|
||||
[node name="LeftHand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/LeftLowerArm" index="0"]
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
scale = Vector2(0.999826, 0.999826)
|
||||
|
||||
[node name="Left_Hand" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/LeftLowerArm/LeftHand" index="0"]
|
||||
texture = SubResource("AtlasTexture_wfem3")
|
||||
centered = false
|
||||
offset = Vector2(-4, 0)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Left_Lower_Arm" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/LeftLowerArm" index="1"]
|
||||
texture = SubResource("AtlasTexture_auqeq")
|
||||
centered = false
|
||||
offset = Vector2(-5, 0)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Eatbox" parent="." index="2"]
|
||||
_damage = SubResource("Resource_2bm8y")
|
||||
|
|
@ -93,9 +129,9 @@ _damage = SubResource("Resource_2bm8y")
|
|||
[node name="Mover" parent="." index="4"]
|
||||
_speed = SubResource("Resource_lt6ps")
|
||||
|
||||
[node name="HitPlayer" parent="." index="6"]
|
||||
[node name="Armor" parent="." index="6"]
|
||||
MaxHP = 375.0
|
||||
|
||||
[node name="HitPlayer" parent="." index="7"]
|
||||
playlist = Array[AudioStream]([ExtResource("5_lt6ps"), ExtResource("6_kedip")])
|
||||
channels = Array[String](["metal_hit", "hit"])
|
||||
|
||||
[node name="Armor" parent="." index="7"]
|
||||
MaxHP = 375.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue