54 lines
2.1 KiB
Text
54 lines
2.1 KiB
Text
[gd_scene load_steps=10 format=3 uid="uid://bq7imkpr2yqyr"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_fluxn"]
|
|
[ext_resource type="Texture2D" uid="uid://dstqh1wc5dvmo" path="res://assets/sprites/atlases/plants/wallnut.png" id="2_o5tda"]
|
|
[ext_resource type="AnimationLibrary" uid="uid://0bdesb8j2mbo" path="res://resources/animations/plants/wallnut.res" id="3_xl65q"]
|
|
[ext_resource type="Script" path="res://scripts/components/plants/behaviours/HpBasedBehaviour.cs" id="4_cjtyy"]
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ds5ry"]
|
|
animation = &"wallnut/idle_full"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_frsxy"]
|
|
animation = &"wallnut/idle_mid"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_7avgo"]
|
|
animation = &"wallnut/idle_low"
|
|
|
|
[sub_resource type="AnimationNodeBlendSpace1D" id="AnimationNodeBlendSpace1D_nij8v"]
|
|
blend_point_0/node = SubResource("AnimationNodeAnimation_ds5ry")
|
|
blend_point_0/pos = 1.0
|
|
blend_point_1/node = SubResource("AnimationNodeAnimation_frsxy")
|
|
blend_point_1/pos = 0.7
|
|
blend_point_2/node = SubResource("AnimationNodeAnimation_7avgo")
|
|
blend_point_2/pos = 0.3
|
|
min_space = 0.0
|
|
blend_mode = 1
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_khltr"]
|
|
size = Vector2(33, 46)
|
|
|
|
[node name="Wallnut" instance=ExtResource("1_fluxn")]
|
|
_maxHP = 1000
|
|
|
|
[node name="Sprite2D" parent="." index="0"]
|
|
texture = ExtResource("2_o5tda")
|
|
hframes = 12
|
|
vframes = 3
|
|
|
|
[node name="AnimationPlayer" parent="." index="1"]
|
|
libraries = {
|
|
"wallnut": ExtResource("3_xl65q")
|
|
}
|
|
|
|
[node name="AnimationTree" parent="." index="2"]
|
|
tree_root = SubResource("AnimationNodeBlendSpace1D_nij8v")
|
|
parameters/blend_position = 1.0
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox" index="0"]
|
|
position = Vector2(3.5, 5)
|
|
shape = SubResource("RectangleShape2D_khltr")
|
|
|
|
[node name="Behaviour" type="Node" parent="." index="4"]
|
|
script = ExtResource("4_cjtyy")
|
|
|
|
[connection signal="OnHPChanged" from="." to="Behaviour" method="OnHPChanged"]
|