basic death functionality

This commit is contained in:
Haze Weathers 2025-03-06 13:33:08 -05:00
parent 60a6df808e
commit d77ed8a49f
4 changed files with 30 additions and 5 deletions

View file

@ -13,6 +13,4 @@ func _process(delta: float) -> void:
func _on_area_2d_body_shape_entered(body_rid: RID, body: Node2D, body_shape_index: int, local_shape_index: int) -> void:
if body is Player:
body.position = body.start_position
body.voice.stream = load("res://assets/audio/vox/capri_die.ogg")
body.voice.play()
body.kill()