Enhanced snail animations and interactions

Added new animation states for the snail entity, including 'Move' and 'Sleep'. The snail now hides certain elements when eating and plays appropriate animations when transitioning between states. Also introduced a new texture for sleep indication.
This commit is contained in:
Dan 2024-05-16 12:00:52 +01:00
parent 5777a7f2f1
commit b8f42a552e
6 changed files with 268 additions and 9 deletions

View file

@ -13,6 +13,10 @@ var original_snail_scale : float = 0.1
func enter(_msg : Dictionary = {}) -> void:
Log.pr("I am a snail and I will eat!")
snail.eating = true
if snail.animation:
snail.animation.play("Move")
snail.hide_zeds()
func exit() -> void:
snail.eating = false