Files
doodlejump/scripts/killzone.gd
2025-05-23 10:58:01 +02:00

16 lines
344 B
GDScript

extends Area2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_body_entered(body: Node2D) -> void:
get_tree().reload_current_scene()