summaryrefslogtreecommitdiff
path: root/Objects/Flag.gd
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2020-12-31 11:33:12 +0100
committerDaniel Weipert <code@drogueronin.de>2020-12-31 11:33:12 +0100
commitfb64f15e22acfc1c03c7c5357dd66077454adbcf (patch)
tree96cdbb8f59bd65609aa76276dfba94f9cdad33d4 /Objects/Flag.gd
Initial commit
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()