This commit is contained in:
2024-10-25 17:03:55 +02:00
parent 5684e58b09
commit ab6acac55b
4 changed files with 37 additions and 2 deletions

11
scripts/killzone.gd Normal file
View File

@ -0,0 +1,11 @@
extends Area2D
@onready var timer: Timer = $Timer
func _on_body_entered(body: Node2D) -> void:
print("YouveDied!")
timer.start()
func _on_timer_timeout() -> void:
get_tree().reload_current_scene()