(wip) Food spawning on prey death
This commit is contained in:
@@ -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