This commit is contained in:
2024-10-25 17:03:55 +02:00
parent 5684e58b09
commit ab6acac55b
4 changed files with 37 additions and 2 deletions

13
scenes/killzone.tscn Normal file
View File

@ -0,0 +1,13 @@
[gd_scene load_steps=2 format=3 uid="uid://cxkr1ot3mkts1"]
[ext_resource type="Script" path="res://scripts/killzone.gd" id="1_dutdq"]
[node name="killzone" type="Area2D"]
collision_mask = 2
script = ExtResource("1_dutdq")
[node name="Timer" type="Timer" parent="."]
one_shot = true
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]