add killzone and convert Tilemap to Tilelayer

This commit is contained in:
2025-10-20 14:13:36 +01:00
parent 2c584fcbbf
commit 07fb832b0a
5 changed files with 42 additions and 5 deletions

14
scenes/killzone.tscn Normal file
View File

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