Update flower entity to spawn snails based on game state.
- Added Snail entity with states for eating and sleeping. - Modified Flowers script to handle snail spawning logic.
This commit is contained in:
parent
9988ee23de
commit
908f834181
8 changed files with 143 additions and 2 deletions
|
|
@ -1,9 +1,10 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://bme541qdw7nai"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://bme541qdw7nai"]
|
||||
|
||||
[ext_resource type="Script" path="res://entities/scripts/flowers.gd" id="1_72iub"]
|
||||
[ext_resource type="PackedScene" uid="uid://rnykx61eqxyk" path="res://scenes/decor/flower_1.tscn" id="1_biusc"]
|
||||
[ext_resource type="PackedScene" uid="uid://b7quc1hxenh5p" path="res://scenes/decor/flower_2.tscn" id="2_k5hnf"]
|
||||
[ext_resource type="Texture2D" uid="uid://dhf4dessaw5p5" path="res://resources/particles/twirl_01.png" id="3_xruiv"]
|
||||
[ext_resource type="PackedScene" uid="uid://bnwvtlsvxjmel" path="res://entities/Snail.tscn" id="5_5uu7l"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_1tovu"]
|
||||
radius = 142.316
|
||||
|
|
@ -123,3 +124,5 @@ libraries = {
|
|||
"": SubResource("AnimationLibrary_qs4pr")
|
||||
}
|
||||
autoplay = "Highlight"
|
||||
|
||||
[node name="Snail" parent="." instance=ExtResource("5_5uu7l")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue