[gd_scene load_steps=8 format=3 uid="uid://x4kv2y5f52cm"] [ext_resource type="Script" path="res://scripts/plant.gd" id="1_drvq1"] [ext_resource type="Texture2D" uid="uid://br1olfut3p0tx" path="res://assets/plants/evolution1.1.png" id="2_gm8i8"] [sub_resource type="SpriteFrames" id="SpriteFrames_667un"] animations = [{ "frames": [{ "duration": 1.0, "texture": ExtResource("2_gm8i8") }], "loop": true, "name": &"SEED", "speed": 5.0 }] [sub_resource type="CircleShape2D" id="CircleShape2D_jksuk"] radius = 36.0 [sub_resource type="Animation" id="Animation_3rkca"] resource_name = "Growing" length = 0.3 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("AnimatedSprite2D:scale") tracks/0/interp = 2 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.133333, 0.3), "transitions": PackedFloat32Array(1, 1, 1), "update": 0, "values": [Vector2(0.1, 0.05), Vector2(0.122, 0.3), Vector2(0.2, 0.2)] } [sub_resource type="Animation" id="Animation_j53j8"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("AnimatedSprite2D:scale") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Vector2(0.2, 0.2)] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_cop0v"] _data = { "Growing": SubResource("Animation_3rkca"), "RESET": SubResource("Animation_j53j8") } [node name="Plant" type="Node2D"] script = ExtResource("1_drvq1") [node name="Growing" type="Timer" parent="."] one_shot = true [node name="NeedChecker" type="Timer" parent="."] [node name="SaplingCountDown" type="Timer" parent="."] one_shot = true [node name="Reproduction" type="Timer" parent="."] [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] scale = Vector2(0.2, 0.2) sprite_frames = SubResource("SpriteFrames_667un") animation = &"SEED" offset = Vector2(0, -250) [node name="Area2D" type="Area2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] shape = SubResource("CircleShape2D_jksuk") [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { "": SubResource("AnimationLibrary_cop0v") } [connection signal="timeout" from="Growing" to="." method="_on_growing_timeout"] [connection signal="timeout" from="NeedChecker" to="." method="_on_need_checker_timeout"] [connection signal="timeout" from="SaplingCountDown" to="." method="_on_sapling_count_down_timeout"] [connection signal="timeout" from="Reproduction" to="." method="_on_reproduction_timeout"]