diff --git a/scripts/PortailDeFin.gd b/scripts/PortailDeFin.gd new file mode 100644 index 0000000..8d26856 --- /dev/null +++ b/scripts/PortailDeFin.gd @@ -0,0 +1,8 @@ +extends Area2D + +func _ready(): + pass + +func _on_Portail_de_fin_body_entered(body): + if "Joueur" in body.name: + get_tree().quit()