toutGlobalement

This commit is contained in:
2024-10-19 15:17:39 +02:00
parent 93a468a604
commit dbad63f3b0
19 changed files with 1464 additions and 47 deletions

17
scene/door.tscn Normal file
View File

@@ -0,0 +1,17 @@
[gd_scene load_steps=3 format=3 uid="uid://bmt2uv41t2dte"]
[ext_resource type="Script" path="res://script/Door.cs" id="1_xvwbq"]
[sub_resource type="CircleShape2D" id="CircleShape2D_aityf"]
radius = 32.0
[node name="door" type="Node2D"]
script = ExtResource("1_xvwbq")
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_aityf")
[connection signal="body_entered" from="Area2D" to="." method="BodyEntered"]
[connection signal="body_exited" from="Area2D" to="." method="BodyExited"]