maze-generator-assets-lib/ziel.gd
megamichi 7bb83a1340 init
2025-02-28 17:13:53 +01:00

8 lines
156 B
GDScript

extends Sprite2D
func _on_area_2d_body_entered(body: Node2D) -> void:
if body.name == "Player":
get_tree().change_scene_to_file("res://end.tscn")