maze-generator-assets-lib/finish.gd

9 lines
153 B
GDScript3
Raw Normal View History

2025-02-28 23:05:41 +01:00
extends Sprite2D
func _on_area_2d_body_entered(body: Node2D) -> void:
if body.name == "Player":
get_tree().change_scene_to_file("res://end.tscn")