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
17
entities/snail/states/snail_sleeping.gd
Normal file
17
entities/snail/states/snail_sleeping.gd
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
extends State
|
||||
class_name SnailSleeping
|
||||
|
||||
@onready var snail = get_parent().get_parent() as Snail # I think this is bad but I dont care it works
|
||||
|
||||
func enter(_msg := {}):
|
||||
Log.pr("I am a snail asleep...")
|
||||
|
||||
func exit():
|
||||
pass
|
||||
|
||||
func update(_delta : float):
|
||||
pass
|
||||
|
||||
func physics_update(_delta : float) -> void:
|
||||
pass
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue