Plants flash and shovel alt
This commit is contained in:
parent
b4bf3ab8bc
commit
e4c25a1ca5
23 changed files with 451 additions and 195 deletions
|
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=63 format=3 uid="uid://bgqmwsb6ynm81"]
|
||||
[gd_scene load_steps=71 format=3 uid="uid://bgqmwsb6ynm81"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://co11v3w8hbwgf" path="res://scenes/entities/Zombies/zombie.tscn" id="1_fnu7s"]
|
||||
[ext_resource type="Shader" uid="uid://d0eo5uuj222c4" path="res://assets/shaders/CG_color_blender.gdshader" id="2_6qr4h"]
|
||||
[ext_resource type="Script" uid="uid://bcc7skl7ts6sh" path="res://scripts/systems/effects/Effect.cs" id="2_n380g"]
|
||||
[ext_resource type="Resource" uid="uid://dsg1vjx76ifgu" path="res://assets/effects/GarlicEffect.tres" id="3_b583s"]
|
||||
[ext_resource type="Script" uid="uid://dt5uj25u0g6y3" path="res://scripts/particles/FallParticle.cs" id="3_tu6af"]
|
||||
[ext_resource type="Script" uid="uid://c5v2og85t7s6j" path="res://scripts/entities/zombies/behaviours/HoboBehaviour.cs" id="4_5selg"]
|
||||
|
|
@ -10,6 +11,7 @@
|
|||
[ext_resource type="Texture2D" uid="uid://dri70dxyks7xh" path="res://assets/sprites/zombies/hobo.png" id="5_b583s"]
|
||||
[ext_resource type="Script" uid="uid://bbw848msxb4re" path="res://scripts/entities/DegradingSprite.cs" id="5_ndwp0"]
|
||||
[ext_resource type="Texture2D" uid="uid://8h5vg1pk32b2" path="res://assets/sprites/garbage_can1.tres" id="6_i6nje"]
|
||||
[ext_resource type="Shader" uid="uid://cgc7spjkhsx7c" path="res://assets/shaders/generic_flash.gdshader" id="7_nlwsb"]
|
||||
[ext_resource type="Texture2D" uid="uid://cogfbn4re3kob" path="res://assets/sprites/garbage_can2.tres" id="7_txjqc"]
|
||||
[ext_resource type="AnimationLibrary" uid="uid://ceb3khu7rwgy8" path="res://assets/animations/zombies/basic.res" id="7_vn3j1"]
|
||||
[ext_resource type="AudioStream" uid="uid://bu1egfsyplpx4" path="res://assets/audio/sfx/metalhit_generic.tres" id="8_4248q"]
|
||||
|
|
@ -19,6 +21,8 @@
|
|||
[ext_resource type="Script" uid="uid://c36bj8u7jghc7" path="res://scripts/audio/ChannelPlayer.cs" id="11_7jlle"]
|
||||
[ext_resource type="Script" uid="uid://d3l8e8ko5r5i3" path="res://scripts/entities/ArmorHPObserver.cs" id="12_vn3j1"]
|
||||
[ext_resource type="AudioStream" uid="uid://ch55p7qbaawtp" path="res://assets/audio/sfx/argh.tres" id="12_w1b1s"]
|
||||
[ext_resource type="Script" uid="uid://30pbgasu64aw" path="res://scripts/entities/FlashShaderController.cs" id="19_8y6c0"]
|
||||
[ext_resource type="Shader" uid="uid://btf4xhu31ln6n" path="res://assets/shaders/canvas_group_flash.gdshader" id="23_nc6p3"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_w8pya"]
|
||||
resource_local_to_scene = true
|
||||
|
|
@ -70,6 +74,18 @@ region = Rect2(91, 32, 9, 15)
|
|||
atlas = ExtResource("5_b583s")
|
||||
region = Rect2(137, 19, 29, 39)
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_y0p2l"]
|
||||
resource_local_to_scene = true
|
||||
shader = ExtResource("7_nlwsb")
|
||||
shader_parameter/selected = false
|
||||
shader_parameter/blend = 0.0
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_op0h6"]
|
||||
resource_local_to_scene = true
|
||||
shader = ExtResource("7_nlwsb")
|
||||
shader_parameter/selected = false
|
||||
shader_parameter/blend = 0.0
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_5selg"]
|
||||
atlas = ExtResource("5_b583s")
|
||||
region = Rect2(0, 29, 35, 11)
|
||||
|
|
@ -86,6 +102,12 @@ region = Rect2(80, 0, 32, 30)
|
|||
atlas = ExtResource("5_b583s")
|
||||
region = Rect2(38, 22, 22, 13)
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_0s5wm"]
|
||||
resource_local_to_scene = true
|
||||
shader = ExtResource("7_nlwsb")
|
||||
shader_parameter/selected = false
|
||||
shader_parameter/blend = 0.0
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_n380g"]
|
||||
atlas = ExtResource("5_b583s")
|
||||
region = Rect2(34, 38, 45, 27)
|
||||
|
|
@ -753,10 +775,16 @@ flat_value = 0.4
|
|||
percentage_value = 0.0
|
||||
mult_value = 1.0
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_pjhfy"]
|
||||
resource_local_to_scene = true
|
||||
shader = ExtResource("23_nc6p3")
|
||||
shader_parameter/blend = 0.0
|
||||
shader_parameter/selected = false
|
||||
|
||||
[node name="Hobo" node_paths=PackedStringArray("_armor") instance=ExtResource("1_fnu7s")]
|
||||
_armor = NodePath("CanArmor")
|
||||
MaxHP = 130.0
|
||||
_effectImmunities = [ExtResource("3_b583s")]
|
||||
_effectImmunities = Array[ExtResource("2_n380g")]([ExtResource("3_b583s")])
|
||||
|
||||
[node name="CanvasGroup" parent="." index="0"]
|
||||
material = SubResource("ShaderMaterial_w8pya")
|
||||
|
|
@ -768,16 +796,16 @@ scale = Vector2(0.999902, 0.999902)
|
|||
texture = SubResource("AtlasTexture_txjqc")
|
||||
|
||||
[node name="RightUpperLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="1"]
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
scale = Vector2(0.99982, 0.99982)
|
||||
|
||||
[node name="Right_Upper_Leg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/RightUpperLeg" index="0"]
|
||||
texture = SubResource("AtlasTexture_b583s")
|
||||
|
||||
[node name="RightLowerLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/RightUpperLeg" index="1"]
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
scale = Vector2(0.999826, 0.999826)
|
||||
|
||||
[node name="RightFoot" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/RightUpperLeg/RightLowerLeg" index="0"]
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
scale = Vector2(0.999826, 0.999826)
|
||||
|
||||
[node name="Right_Foot" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/RightUpperLeg/RightLowerLeg/RightFoot" index="0"]
|
||||
texture = SubResource("AtlasTexture_uoit3")
|
||||
|
|
@ -786,31 +814,34 @@ texture = SubResource("AtlasTexture_uoit3")
|
|||
texture = SubResource("AtlasTexture_vn3j1")
|
||||
|
||||
[node name="LeftUpperLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="2"]
|
||||
scale = Vector2(0.999827, 0.999827)
|
||||
scale = Vector2(0.999823, 0.999823)
|
||||
|
||||
[node name="Left_Upper_Leg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg" index="0"]
|
||||
texture = SubResource("AtlasTexture_yb81c")
|
||||
|
||||
[node name="LeftLowerLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg" index="1"]
|
||||
scale = Vector2(0.999831, 0.999831)
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
|
||||
[node name="Left_Lower_Leg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg/LeftLowerLeg" index="0"]
|
||||
texture = SubResource("AtlasTexture_nlwsb")
|
||||
|
||||
[node name="LeftFoot" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg/LeftLowerLeg" index="1"]
|
||||
scale = Vector2(0.999816, 0.999816)
|
||||
scale = Vector2(0.999822, 0.999822)
|
||||
|
||||
[node name="Left_Foot" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg/LeftLowerLeg/LeftFoot" index="0"]
|
||||
texture = SubResource("AtlasTexture_8y6c0")
|
||||
|
||||
[node name="Body" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="3"]
|
||||
scale = Vector2(0.999825, 0.999825)
|
||||
|
||||
[node name="RightUpperArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="0"]
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
|
||||
[node name="Right_Upper_Arm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm" index="0"]
|
||||
texture = SubResource("AtlasTexture_nc6p3")
|
||||
|
||||
[node name="RightLowerArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm" index="1"]
|
||||
scale = Vector2(0.999816, 0.999816)
|
||||
scale = Vector2(0.999811, 0.999811)
|
||||
|
||||
[node name="Right_Hand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm/RightLowerArm/RightHand" index="0"]
|
||||
texture = SubResource("AtlasTexture_y0p2l")
|
||||
|
|
@ -822,7 +853,7 @@ texture = SubResource("AtlasTexture_op0h6")
|
|||
texture = SubResource("AtlasTexture_0s5wm")
|
||||
|
||||
[node name="Tie" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="2"]
|
||||
rotation = 0.050955
|
||||
rotation = 0.0327417
|
||||
scale = Vector2(1e-05, 1e-05)
|
||||
|
||||
[node name="Tie" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Tie" index="0"]
|
||||
|
|
@ -841,6 +872,7 @@ maxTorque = 45.0
|
|||
Impulse = 100.0
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Can" index="0" node_paths=PackedStringArray("armor")]
|
||||
material = SubResource("ShaderMaterial_y0p2l")
|
||||
position = Vector2(-5.9999, -4.5002)
|
||||
texture = ExtResource("6_i6nje")
|
||||
script = ExtResource("5_ndwp0")
|
||||
|
|
@ -850,6 +882,7 @@ thresholdPercentage = Array[float]([1.0, 0.667, 0.333])
|
|||
|
||||
[node name="Sprite2D2" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Can" index="1"]
|
||||
z_index = -1
|
||||
material = SubResource("ShaderMaterial_op0h6")
|
||||
position = Vector2(-7.4999, -27.5002)
|
||||
texture = SubResource("AtlasTexture_5selg")
|
||||
|
||||
|
|
@ -863,10 +896,16 @@ scale = Vector2(0.999827, 0.999827)
|
|||
[node name="Head" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle" index="0"]
|
||||
texture = SubResource("AtlasTexture_pjhfy")
|
||||
|
||||
[node name="Right_Eye" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="0"]
|
||||
position = Vector2(-16, -8)
|
||||
|
||||
[node name="Left_Eye" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="1"]
|
||||
position = Vector2(-4, -9)
|
||||
|
||||
[node name="Jaw" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="2"]
|
||||
position = Vector2(-3, 3)
|
||||
rotation = -0.082875
|
||||
scale = Vector2(0.999827, 0.999827)
|
||||
rotation = -0.0532523
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
texture = SubResource("AtlasTexture_7cvmi")
|
||||
offset = Vector2(-14, -2)
|
||||
|
||||
|
|
@ -881,7 +920,9 @@ data = NodePath("../../../../../../../../..")
|
|||
|
||||
[node name="Trashcan_lid" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head/TrashcanLid" index="0"]
|
||||
z_index = -1
|
||||
material = SubResource("ShaderMaterial_0s5wm")
|
||||
position = Vector2(2.99822, -20.0166)
|
||||
scale = Vector2(1, 1)
|
||||
texture = SubResource("AtlasTexture_n380g")
|
||||
offset = Vector2(-0.5, -0.5)
|
||||
metadata/_edit_lock_ = true
|
||||
|
|
@ -896,7 +937,7 @@ _threshold = 0.333
|
|||
_observedArmor = NodePath("../../../../../../../../../../CanArmor")
|
||||
|
||||
[node name="Jaw" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head" index="1"]
|
||||
scale = Vector2(0.999827, 0.999827)
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
|
||||
[node name="TrashcanLid" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head" index="4"]
|
||||
position = Vector2(-0.0022974, -17.0131)
|
||||
|
|
@ -911,23 +952,24 @@ editor_settings/show_bone_gizmo = false
|
|||
remote_path = NodePath("../../HeadParticle/Head/TrashcanLid/Trashcan_lid")
|
||||
|
||||
[node name="LeftUpperArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="5"]
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
scale = Vector2(0.99981, 0.99981)
|
||||
|
||||
[node name="Left_Upper_Arm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm" index="0"]
|
||||
texture = SubResource("AtlasTexture_tebih")
|
||||
|
||||
[node name="Left_Lower_Arm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/HandProjectile" index="0"]
|
||||
rotation = 0.0459656
|
||||
scale = Vector2(0.999997, 0.999997)
|
||||
rotation = 0.0295357
|
||||
scale = Vector2(0.999991, 0.999991)
|
||||
texture = SubResource("AtlasTexture_auxav")
|
||||
|
||||
[node name="Left_Hand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/HandProjectile/Left_Lower_Arm" index="0"]
|
||||
rotation = -3.72659e-09
|
||||
position = Vector2(-0.99983, 12.9978)
|
||||
rotation = 0.0
|
||||
scale = Vector2(0.999652, 0.999652)
|
||||
texture = SubResource("AtlasTexture_dntsa")
|
||||
|
||||
[node name="LeftLowerArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm" index="2"]
|
||||
scale = Vector2(0.999827, 0.999827)
|
||||
scale = Vector2(0.999821, 0.999821)
|
||||
|
||||
[node name="LeftHand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/LeftLowerArm" index="0"]
|
||||
scale = Vector2(0.999822, 0.999822)
|
||||
|
|
@ -948,7 +990,6 @@ advance_expression_base_node = NodePath("../Behaviour")
|
|||
|
||||
[node name="Mover" parent="." index="4"]
|
||||
_speed = SubResource("Resource_4248q")
|
||||
_speedControlMult = 0.0
|
||||
|
||||
[node name="HitPlayer" parent="." index="5"]
|
||||
playlist = Array[AudioStream]([ExtResource("8_4248q"), ExtResource("9_tu6af")])
|
||||
|
|
@ -959,6 +1000,10 @@ script = ExtResource("4_w8pya")
|
|||
MaxHP = 385.0
|
||||
metadata/_custom_type_script = "uid://fd4im1fmwc5n"
|
||||
|
||||
[node name="FlashController" type="Node" parent="CanArmor" index="0"]
|
||||
script = ExtResource("19_8y6c0")
|
||||
shaderMaterial = SubResource("ShaderMaterial_0s5wm")
|
||||
|
||||
[node name="Behaviour" type="Node" parent="." index="8" node_paths=PackedStringArray("_eatBox", "_animationTree")]
|
||||
script = ExtResource("4_5selg")
|
||||
_eatBox = NodePath("../Eatbox")
|
||||
|
|
@ -970,9 +1015,13 @@ audioStream = ExtResource("12_w1b1s")
|
|||
channel = "anger"
|
||||
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
||||
|
||||
[node name="FlashController" parent="." index="12"]
|
||||
shaderMaterial = SubResource("ShaderMaterial_pjhfy")
|
||||
|
||||
[connection signal="ThresholdReached" from="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head/TrashcanLid/Observer" to="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head/TrashcanLid" method="FallOff"]
|
||||
[connection signal="ThresholdReached" from="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head/TrashcanLid/Observer" to="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/TrashcanLid/RemoteTransform2D" method="queue_free"]
|
||||
[connection signal="ArmorDamaged" from="CanArmor" to="." method="HPChangedMixedInvoker"]
|
||||
[connection signal="ArmorLost" from="CanArmor" to="HitPlayer" method="Next"]
|
||||
[connection signal="ArmorLost" from="CanArmor" to="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Can" method="FallOff"]
|
||||
[connection signal="ArmorLost" from="CanArmor" to="Behaviour" method="Trashed"]
|
||||
[connection signal="Damaged" from="CanArmor" to="HitPlayer" method="Play"]
|
||||
[connection signal="Damaged" from="CanArmor" to="CanArmor/FlashController" method="DamageFlash"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue