(wip) Food spawning on prey death

This commit is contained in:
Martin committed 2026-02-07 17:42:57 +01:00
1 parent 9c625edef4
commit 1dc1501b80
4 files changed
+3 -2

No files matched your search

@@ -40,6 +40,7 @@ func handle_damage(dmg: int, src: Node) -> void:
func die() -> void:
sprite.play("Dying")
wrapper.play_sprite("Dying")
GameManager.foodManager._spawn_food(position)
super.die()
func become_injured() -> void:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.