Play zones

This commit is contained in:
Иван Кузьменко 2023-08-19 14:25:16 +03:00
parent 4826bc4035
commit 7cce797ded
7 changed files with 150 additions and 58 deletions

View file

@ -1,6 +1,20 @@
[gd_scene load_steps=2 format=3 uid="uid://bdtjnmjopi5h2"]
[gd_scene load_steps=3 format=3 uid="uid://bdtjnmjopi5h2"]
[ext_resource type="Script" path="res://scripts/PlayZone.cs" id="1_k3xi5"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1bby8"]
size = Vector2(2, 1)
[node name="PlayZone" type="Node2D"]
script = ExtResource("1_k3xi5")
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 4
collision_mask = 4
monitorable = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("RectangleShape2D_1bby8")
[connection signal="body_entered" from="Area2D" to="." method="BodyEntered"]
[connection signal="body_exited" from="Area2D" to="." method="BodyExited"]