[gd_scene load_steps=6 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 [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") [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"]