summaryrefslogtreecommitdiff
path: root/Objects
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2021-01-31 13:34:11 +0100
committerDaniel Weipert <code@drogueronin.de>2021-01-31 13:34:11 +0100
commitf4c0645b74e85607e18c58f77cc7bbd1a4931123 (patch)
tree071975e553cd62a55d0fb9949b1c003ed0adbe4e /Objects
parent3f4c07d2cf57bd364af6b09a3d5381d148aa713e (diff)
Small adjustments
Diffstat (limited to 'Objects')
-rw-r--r--Objects/CheckFall.gd5
-rw-r--r--Objects/CheckFall.tscn2
2 files changed, 6 insertions, 1 deletions
diff --git a/Objects/CheckFall.gd b/Objects/CheckFall.gd
new file mode 100644
index 0000000..ff28fc0
--- /dev/null
+++ b/Objects/CheckFall.gd
@@ -0,0 +1,5 @@
+extends Area2D
+
+
+func _on_CheckFall_body_entered(body):
+ get_parent().respawn_player()
diff --git a/Objects/CheckFall.tscn b/Objects/CheckFall.tscn
index 58da76e..526c2e3 100644
--- a/Objects/CheckFall.tscn
+++ b/Objects/CheckFall.tscn
@@ -1,6 +1,6 @@
[gd_scene load_steps=3 format=2]
-[ext_resource path="res://CheckFall.gd" type="Script" id=1]
+[ext_resource path="res://Objects/CheckFall.gd" type="Script" id=1]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 384, 10 )