[gd_scene load_steps=9 format=3 uid="uid://x4kv2y5f52cm"] [ext_resource type="Script" path="res://scripts/plant.gd" id="1_drvq1"] [ext_resource type="Texture2D" uid="uid://b3kjaw1hajc6s" path="res://assets/grille_seeds.png" id="1_n5onq"] [sub_resource type="AtlasTexture" id="AtlasTexture_5did5"] atlas = ExtResource("1_n5onq") region = Rect2(810, 540, 270, 270) [sub_resource type="SpriteFrames" id="SpriteFrames_667un"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_5did5") }], "loop": true, "name": &"SEED", "speed": 5.0 }] [sub_resource type="CircleShape2D" id="CircleShape2D_jksuk"] radius = 36.0 [sub_resource type="Animation" id="Animation_3tubk"] resource_name = "Growing" length = 0.4 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.2, 0.4), "transitions": PackedFloat32Array(1, 1, 1), "update": 0, "values": [Vector2(0.1, 0.1), Vector2(0.12, 0.3), Vector2(0.2, 0.2)] } [sub_resource type="Animation" id="Animation_fcus3"] 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_da8e6"] _data = { "Growing": SubResource("Animation_3tubk"), "RESET": SubResource("Animation_fcus3") } [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" speed_scale = 0.0 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_da8e6") } [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"]