71 lines
2.7 KiB
Text
71 lines
2.7 KiB
Text
[gd_scene load_steps=11 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/components/Armor.cs" id="3_5s7in"]
|
|
[ext_resource type="Script" uid="uid://dt5uj25u0g6y3" path="res://scripts/components/particles/FallParticle.cs" id="3_w70im"]
|
|
[ext_resource type="Texture2D" uid="uid://ceqvdmude7cgg" path="res://assets/sprites/cone.tres" id="4_qdhik"]
|
|
[ext_resource type="Script" uid="uid://c3cfnrmnnuqms" path="res://addons/floatmodifiers/FloatModifiers.cs" id="4_qof5v"]
|
|
|
|
[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
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_67t4t"]
|
|
|
|
[sub_resource type="Resource" id="Resource_w70im"]
|
|
resource_local_to_scene = true
|
|
script = ExtResource("4_qof5v")
|
|
flat_value = 10.0
|
|
percentage_value = 0.0
|
|
mult_value = 1.0
|
|
|
|
[sub_resource type="Resource" id="Resource_qof5v"]
|
|
resource_local_to_scene = true
|
|
script = ExtResource("4_qof5v")
|
|
flat_value = 0.2
|
|
percentage_value = 0.0
|
|
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="Hat" type="RigidBody2D" parent="CanvasGroup" index="1" node_paths=PackedStringArray("data", "deathTimer")]
|
|
position = Vector2(-12, -78)
|
|
collision_layer = 128
|
|
collision_mask = 64
|
|
mass = 0.5
|
|
center_of_mass_mode = 1
|
|
freeze = true
|
|
script = ExtResource("3_w70im")
|
|
data = NodePath("../..")
|
|
deathTimer = NodePath("Timer")
|
|
|
|
[node name="Sprite" type="Sprite2D" parent="CanvasGroup/Hat" index="0"]
|
|
position = Vector2(2, -10)
|
|
texture = ExtResource("4_qdhik")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="CanvasGroup/Hat" index="1"]
|
|
position = Vector2(4, -4)
|
|
shape = SubResource("CircleShape2D_67t4t")
|
|
|
|
[node name="Timer" type="Timer" parent="CanvasGroup/Hat" index="2"]
|
|
wait_time = 5.0
|
|
|
|
[node name="Eatbox" parent="." index="2"]
|
|
_damage = SubResource("Resource_w70im")
|
|
|
|
[node name="Mover" parent="." index="5"]
|
|
_speed = SubResource("Resource_qof5v")
|
|
|
|
[node name="Armor" type="Node" parent="." index="7"]
|
|
script = ExtResource("3_5s7in")
|
|
_maxHP = 130
|
|
|
|
[connection signal="timeout" from="CanvasGroup/Hat/Timer" to="CanvasGroup/Hat" method="queue_free"]
|
|
[connection signal="ArmorLost" from="Armor" to="CanvasGroup/Hat" method="FallOff"]
|