summaryrefslogtreecommitdiff
path: root/Objects/Flag.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/Flag.gd')
-rw-r--r--Objects/Flag.gd6
1 files changed, 6 insertions, 0 deletions
diff --git a/Objects/Flag.gd b/Objects/Flag.gd
new file mode 100644
index 0000000..bdb2237
--- /dev/null
+++ b/Objects/Flag.gd
@@ -0,0 +1,6 @@
+extends Area2D
+
+
+func _on_Flag_body_entered(body):
+ body.check_flag()
+ get_parent().end_level()