63 lines
2.4 KiB
Text
63 lines
2.4 KiB
Text
[gd_scene load_steps=10 format=3 uid="uid://bdhod5c6o53ha"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_vmbvr"]
|
|
[ext_resource type="Texture2D" uid="uid://coafh3mjharxo" path="res://assets/sprites/atlases/plants/spikeweed.png" id="2_ffrjr"]
|
|
[ext_resource type="Script" path="res://scripts/components/plants/AreaAttack.cs" id="3_hqtbm"]
|
|
[ext_resource type="AnimationLibrary" uid="uid://cen6ku4y01dyg" path="res://resources/animations/plants/spikeweed.res" id="3_nwshn"]
|
|
[ext_resource type="Script" path="res://scripts/components/plants/behaviours/SpikeweedBehaviour.cs" id="3_uhpn7"]
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_lmfqg"]
|
|
animation = &"spikeweed/idle"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ccr6v"]
|
|
animation = &"spikeweed/attack"
|
|
|
|
[sub_resource type="AnimationNodeBlendSpace1D" id="AnimationNodeBlendSpace1D_1y7y3"]
|
|
blend_point_0/node = SubResource("AnimationNodeAnimation_lmfqg")
|
|
blend_point_0/pos = 0.0
|
|
blend_point_1/node = SubResource("AnimationNodeAnimation_ccr6v")
|
|
blend_point_1/pos = 1.0
|
|
min_space = 0.0
|
|
snap = 1.0
|
|
value_label = "attack"
|
|
blend_mode = 1
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1di76"]
|
|
size = Vector2(49, 38)
|
|
|
|
[node name="Spikeweed" instance=ExtResource("1_vmbvr")]
|
|
_maxHP = 100
|
|
|
|
[node name="Sprite2D" parent="." index="0"]
|
|
texture = ExtResource("2_ffrjr")
|
|
hframes = 10
|
|
vframes = 2
|
|
frame = 8
|
|
|
|
[node name="AnimationPlayer" parent="." index="1"]
|
|
libraries = {
|
|
"spikeweed": ExtResource("3_nwshn")
|
|
}
|
|
|
|
[node name="AnimationTree" parent="." index="2"]
|
|
tree_root = SubResource("AnimationNodeBlendSpace1D_1y7y3")
|
|
parameters/blend_position = 0.0
|
|
|
|
[node name="Behaviour" type="Node" parent="." index="3" node_paths=PackedStringArray("_tree")]
|
|
script = ExtResource("3_uhpn7")
|
|
_tree = NodePath("../AnimationTree")
|
|
|
|
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="." index="4"]
|
|
|
|
[node name="Hitbox" parent="." index="5"]
|
|
collision_layer = 4
|
|
collision_mask = 8
|
|
script = ExtResource("3_hqtbm")
|
|
_damage = 2
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox" index="0"]
|
|
position = Vector2(0.5, 9)
|
|
shape = SubResource("RectangleShape2D_1di76")
|
|
|
|
[connection signal="area_entered" from="Hitbox" to="Behaviour" method="OnHitboxEntered"]
|
|
[connection signal="area_exited" from="Hitbox" to="Behaviour" method="OnHitboxExited"]
|