[gd_scene load_steps=12 format=3 uid="uid://dh6rm7o3taaek"] [ext_resource type="Texture2D" uid="uid://dstqh1wc5dvmo" path="res://assets/sprites/atlases/plants/wallnut.png" id="1_571nl"] [ext_resource type="Script" path="res://scripts/components/plants/RuntimePlantData.cs" id="1_mt5mt"] [ext_resource type="Script" path="res://scripts/components/plants/behaviours/WallnutBehaviour.cs" id="3_tu4pm"] [sub_resource type="Animation" id="Animation_s4r5j"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [0] } [sub_resource type="Animation" id="Animation_lfaj3"] resource_name = "idle_full" length = 6.00005 loop_mode = 1 step = 0.5 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5), "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), "update": 1, "values": [0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33] } [sub_resource type="Animation" id="Animation_u73od"] resource_name = "idle_low" length = 5.50005 loop_mode = 1 step = 0.5 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5), "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), "update": 1, "values": [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32] } [sub_resource type="Animation" id="Animation_c8ofx"] resource_name = "idle_mid" length = 6.00005 loop_mode = 1 step = 0.5 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5), "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), "update": 1, "values": [1, 4, 7, 10, 13, 16, 19, 22, 25, 28, 31, 34] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_7mgid"] _data = { "RESET": SubResource("Animation_s4r5j"), "idle_full": SubResource("Animation_lfaj3"), "idle_low": SubResource("Animation_u73od"), "idle_mid": SubResource("Animation_c8ofx") } [sub_resource type="VisualShader" id="VisualShader_w5h5j"] code = "shader_type canvas_item; render_mode blend_mix; " graph_offset = Vector2(-551.922, -202.033) mode = 1 flags/light_only = false nodes/fragment/0/position = Vector2(660, 100) [sub_resource type="ShaderMaterial" id="ShaderMaterial_a0k73"] shader = SubResource("VisualShader_w5h5j") [sub_resource type="RectangleShape2D" id="RectangleShape2D_523ui"] size = Vector2(33, 46) [node name="Wallnut" type="Node2D"] script = ExtResource("1_mt5mt") _maxHP = 1000 [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { "": SubResource("AnimationLibrary_7mgid") } autoplay = "idle_full" [node name="Sprite" type="Sprite2D" parent="."] material = SubResource("ShaderMaterial_a0k73") texture = ExtResource("1_571nl") hframes = 3 vframes = 12 [node name="Behaviour" type="Node" parent="."] script = ExtResource("3_tu4pm") [node name="Hitbox" type="Area2D" parent="."] collision_layer = 2 collision_mask = 0 [node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"] position = Vector2(3.5, 5) shape = SubResource("RectangleShape2D_523ui") [connection signal="OnHPChanged" from="." to="Behaviour" method="OnHPChanged"]