Plants flash and shovel alt
This commit is contained in:
parent
b4bf3ab8bc
commit
e4c25a1ca5
23 changed files with 451 additions and 195 deletions
|
|
@ -1,8 +1,8 @@
|
|||
[gd_scene load_steps=16 format=3 uid="uid://hhjbqkjqpt7x"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://co11v3w8hbwgf" path="res://scenes/entities/Zombies/zombie.tscn" id="1_3dq4c"]
|
||||
[ext_resource type="Shader" uid="uid://d0eo5uuj222c4" path="res://assets/shaders/CG_color_blender.gdshader" id="2_2dq8e"]
|
||||
[ext_resource type="Script" uid="uid://fd4im1fmwc5n" path="res://scripts/entities/Armor.cs" id="3_5s7in"]
|
||||
[ext_resource type="Material" uid="uid://cn7ac4meka1hc" path="res://assets/GenericFlashMaterial.tres" id="3_b8kja"]
|
||||
[ext_resource type="Script" uid="uid://dt5uj25u0g6y3" path="res://scripts/particles/FallParticle.cs" id="3_w70im"]
|
||||
[ext_resource type="Texture2D" uid="uid://ceqvdmude7cgg" path="res://assets/sprites/cone1.tres" id="4_qdhik"]
|
||||
[ext_resource type="Script" uid="uid://c3cfnrmnnuqms" path="res://addons/floatmodifiers/FloatModifiers.cs" id="4_qof5v"]
|
||||
|
|
@ -11,12 +11,7 @@
|
|||
[ext_resource type="AudioStream" uid="uid://bmupd3v3gvsca" path="res://assets/audio/sfx/plastichit_generic.tres" id="7_0amn8"]
|
||||
[ext_resource type="Texture2D" uid="uid://cnn81r1y0xwod" path="res://assets/sprites/cone3.tres" id="7_011r0"]
|
||||
[ext_resource type="AudioStream" uid="uid://w0qfwds4o3ti" path="res://assets/audio/sfx/hit_generic.tres" id="7_67t4t"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_sat5k"]
|
||||
resource_local_to_scene = true
|
||||
shader = ExtResource("2_2dq8e")
|
||||
shader_parameter/blend_color = Color(1, 1, 1, 1)
|
||||
shader_parameter/amount = 0.0
|
||||
[ext_resource type="Script" uid="uid://30pbgasu64aw" path="res://scripts/entities/FlashShaderController.cs" id="13_7fceb"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_67t4t"]
|
||||
|
||||
|
|
@ -37,53 +32,57 @@ mult_value = 1.0
|
|||
[node name="ConeZombie" node_paths=PackedStringArray("_armor") instance=ExtResource("1_3dq4c")]
|
||||
_armor = NodePath("Armor")
|
||||
|
||||
[node name="CanvasGroup" parent="." index="0"]
|
||||
material = SubResource("ShaderMaterial_sat5k")
|
||||
|
||||
[node name="RightUpperLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="1"]
|
||||
scale = Vector2(0.999835, 0.999835)
|
||||
|
||||
[node name="LeftUpperLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="2"]
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
|
||||
[node name="LeftLowerLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg" index="1"]
|
||||
scale = Vector2(0.999834, 0.999834)
|
||||
|
||||
[node name="LeftFoot" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg/LeftLowerLeg" index="1"]
|
||||
scale = Vector2(0.999826, 0.999826)
|
||||
[node name="RightLowerLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/RightUpperLeg" index="1"]
|
||||
scale = Vector2(0.999832, 0.999832)
|
||||
|
||||
[node name="Body" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="3"]
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
|
||||
[node name="RightUpperArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="0"]
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
|
||||
[node name="RightLowerArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm" index="1"]
|
||||
scale = Vector2(0.999826, 0.999826)
|
||||
|
||||
[node name="RightHand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm/RightLowerArm" index="0"]
|
||||
[node name="RightFoot" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/RightUpperLeg/RightLowerLeg" index="0"]
|
||||
scale = Vector2(0.999831, 0.999831)
|
||||
|
||||
[node name="LeftUpperLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="2"]
|
||||
scale = Vector2(0.999832, 0.999832)
|
||||
|
||||
[node name="LeftLowerLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg" index="1"]
|
||||
scale = Vector2(0.999832, 0.999832)
|
||||
|
||||
[node name="LeftFoot" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg/LeftLowerLeg" index="1"]
|
||||
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.99983, 0.99983)
|
||||
|
||||
[node name="RightLowerArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm" index="1"]
|
||||
scale = Vector2(0.999825, 0.999825)
|
||||
|
||||
[node name="RightHand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm/RightLowerArm" index="0"]
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
|
||||
[node name="Tie" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="2"]
|
||||
rotation = 0.134918
|
||||
skew = -0.000136733
|
||||
rotation = 0.116614
|
||||
skew = -0.000146031
|
||||
|
||||
[node name="Head" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="3"]
|
||||
scale = Vector2(0.999823, 0.999823)
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
|
||||
[node name="Right_Eye" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="0"]
|
||||
position = Vector2(-16, -7.99999)
|
||||
position = Vector2(-16, -8)
|
||||
scale = Vector2(1, 1)
|
||||
|
||||
[node name="Left_Eye" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="1"]
|
||||
position = Vector2(-4, -8.99999)
|
||||
scale = Vector2(1, 1)
|
||||
|
||||
[node name="Jaw" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="2"]
|
||||
position = Vector2(-3.00166, 2.9972)
|
||||
rotation = 0.0130933
|
||||
scale = Vector2(0.999837, 0.999837)
|
||||
position = Vector2(-3.00143, 2.99758)
|
||||
rotation = 0.011317
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
|
||||
[node name="Jaw" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head" index="1"]
|
||||
scale = Vector2(0.999837, 0.999837)
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
|
||||
[node name="Hat" type="RigidBody2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head" index="4" node_paths=PackedStringArray("data")]
|
||||
position = Vector2(-2.5, -13.5)
|
||||
|
|
@ -100,6 +99,7 @@ maxTorque = 45.0
|
|||
Impulse = 100.0
|
||||
|
||||
[node name="Sprite" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/Hat" index="0" node_paths=PackedStringArray("armor")]
|
||||
material = ExtResource("3_b8kja")
|
||||
position = Vector2(-1, -12)
|
||||
texture = ExtResource("4_qdhik")
|
||||
script = ExtResource("5_ickyd")
|
||||
|
|
@ -112,24 +112,29 @@ position = Vector2(1, -6)
|
|||
shape = SubResource("CircleShape2D_67t4t")
|
||||
|
||||
[node name="LeftUpperArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="4"]
|
||||
scale = Vector2(0.999825, 0.999825)
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
|
||||
[node name="Left_Lower_Arm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/HandProjectile" index="0"]
|
||||
rotation = 0.126852
|
||||
rotation = 0.109643
|
||||
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"]
|
||||
rotation = -0.0559848
|
||||
scale = Vector2(0.999655, 0.999655)
|
||||
position = Vector2(-0.99983, 12.9978)
|
||||
rotation = -0.0483896
|
||||
scale = Vector2(0.999657, 0.999657)
|
||||
|
||||
[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.999825, 0.999825)
|
||||
scale = Vector2(0.999827, 0.999827)
|
||||
|
||||
[node name="Eatbox" parent="." index="2"]
|
||||
_damage = SubResource("Resource_011r0")
|
||||
|
||||
[node name="Mover" parent="." index="4"]
|
||||
_speed = SubResource("Resource_b6mal")
|
||||
_speedControlMult = 0.918428
|
||||
_speedControlMult = 0.670374
|
||||
|
||||
[node name="HitPlayer" parent="." index="5"]
|
||||
playlist = Array[AudioStream]([ExtResource("7_0amn8"), ExtResource("7_67t4t")])
|
||||
|
|
@ -139,6 +144,12 @@ channels = Array[String](["plastic_hit", "hit"])
|
|||
script = ExtResource("3_5s7in")
|
||||
MaxHP = 135.0
|
||||
|
||||
[connection signal="ArmorDamaged" from="Armor" to="." method="HPChangedMixedInvoker"]
|
||||
[node name="FlashController" type="Node" parent="Armor" index="0"]
|
||||
script = ExtResource("13_7fceb")
|
||||
shaderMaterial = ExtResource("3_b8kja")
|
||||
|
||||
[connection signal="ArmorLost" from="Armor" to="HitPlayer" method="Next"]
|
||||
[connection signal="ArmorLost" from="Armor" to="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/Hat" method="FallOff"]
|
||||
[connection signal="Damaged" from="Armor" to="HitPlayer" method="Play"]
|
||||
[connection signal="Damaged" from="Armor" to="Armor/FlashController" method="DamageFlash"]
|
||||
[connection signal="HpChanged" from="Armor" to="." method="HPChangedMixedInvoker"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue