- Added Snail entity with states for eating and sleeping. - Modified Flowers script to handle snail spawning logic.
24 lines
1 KiB
Text
24 lines
1 KiB
Text
[gd_scene load_steps=5 format=3 uid="uid://bnwvtlsvxjmel"]
|
|
|
|
[ext_resource type="Script" path="res://entities/scripts/snail.gd" id="1_lkvd1"]
|
|
[ext_resource type="Script" path="res://entities/scripts/finite_state_machine.gd" id="1_tejvt"]
|
|
[ext_resource type="Script" path="res://entities/snail/states/snail_sleeping.gd" id="3_wnrnl"]
|
|
[ext_resource type="Script" path="res://entities/snail/states/snail_eating.gd" id="4_1abwi"]
|
|
|
|
[node name="Snail" type="Sprite2D"]
|
|
script = ExtResource("1_lkvd1")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
|
|
[node name="Polygon2D" type="Polygon2D" parent="."]
|
|
polygon = PackedVector2Array(-8, -8, 4, -11, 10, 5, -7, 9, -25, 8, -22, 0, -11, 0)
|
|
|
|
[node name="StateMachine" type="Node" parent="." node_paths=PackedStringArray("initial_state")]
|
|
script = ExtResource("1_tejvt")
|
|
initial_state = NodePath("Sleeping")
|
|
|
|
[node name="Sleeping" type="Node" parent="StateMachine"]
|
|
script = ExtResource("3_wnrnl")
|
|
|
|
[node name="Eating" type="Node" parent="StateMachine"]
|
|
script = ExtResource("4_1abwi")
|