68 lines
2.7 KiB
Text
68 lines
2.7 KiB
Text
[gd_scene load_steps=12 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://assets/animations/plants/wallnut.res" id="3_xl65q"]
|
|
[ext_resource type="Script" uid="uid://btkmd86pn828y" path="res://scripts/entities/plants/behaviours/HpBasedBehaviour.cs" id="4_cjtyy"]
|
|
|
|
[sub_resource type="AnimationNodeTimeScale" id="AnimationNodeTimeScale_y3tlf"]
|
|
|
|
[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.5
|
|
blend_point_2/node = SubResource("AnimationNodeAnimation_7avgo")
|
|
blend_point_2/pos = 0.0
|
|
min_space = 0.0
|
|
blend_mode = 1
|
|
|
|
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_bi7an"]
|
|
graph_offset = Vector2(-338.2, 175.4)
|
|
nodes/TimeScale/node = SubResource("AnimationNodeTimeScale_y3tlf")
|
|
nodes/TimeScale/position = Vector2(60, 140)
|
|
nodes/Tree/node = SubResource("AnimationNodeBlendSpace1D_nij8v")
|
|
nodes/Tree/position = Vector2(-180, 180)
|
|
node_connections = [&"TimeScale", 0, &"Tree", &"output", 0, &"TimeScale"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_khltr"]
|
|
size = Vector2(33, 46)
|
|
|
|
[node name="Wallnut" instance=ExtResource("1_fluxn")]
|
|
internal_id = "wallnut"
|
|
MaxHP = 600.0
|
|
|
|
[node name="Sprite2D" parent="." index="0"]
|
|
texture = ExtResource("2_o5tda")
|
|
hframes = 12
|
|
vframes = 3
|
|
frame = 10
|
|
|
|
[node name="AnimationPlayer" parent="." index="1"]
|
|
libraries = {
|
|
&"wallnut": ExtResource("3_xl65q")
|
|
}
|
|
|
|
[node name="AnimationTree" parent="." index="2"]
|
|
tree_root = SubResource("AnimationNodeBlendTree_bi7an")
|
|
parameters/TimeScale/scale = 1.0
|
|
parameters/Tree/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")
|
|
parameters = Array[String](["parameters/Tree/blend_position"])
|
|
|
|
[connection signal="OnHPChanged" from="." to="Behaviour" method="OnHPChanged"]
|