[gd_scene format=3 uid="uid://g804mryrvumc"]

[ext_resource type="Script" uid="uid://570p71fu5aao" path="res://level/puerta.gd" id="1_b2qf1"]
[ext_resource type="Texture2D" uid="uid://px4tm3jd2tk" path="res://level/puertas/puerta.png" id="1_g8lek"]

[node name="puerta" type="Node2D" unique_id=1512368849]
script = ExtResource("1_b2qf1")

[node name="sprite" type="Sprite2D" parent="." unique_id=1417702738]
position = Vector2(13, 59)
texture = ExtResource("1_g8lek")

[node name="colision" type="StaticBody2D" parent="." unique_id=2052834583]

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="colision" unique_id=433541935]
polygon = PackedVector2Array(28, 19, 0, 0, 0, 93, 27, 119)

[node name="HitBoxPuerta" type="Area2D" parent="." unique_id=674405476]

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="HitBoxPuerta" unique_id=215074592]
position = Vector2(14, 61)
polygon = PackedVector2Array(-18, -67, 16, -48, 16, 67, -18, 33)

[node name="DoorPosition" type="Marker2D" parent="." unique_id=856690654]
position = Vector2(-18, 106)

[node name="SFX" type="AudioStreamPlayer2D" parent="." unique_id=438767189]
max_polyphony = 2
bus = &"SFX"

[node name="TimeoutCierre" type="Timer" parent="." unique_id=783303024]
wait_time = 0.5
one_shot = true

[connection signal="area_entered" from="HitBoxPuerta" to="." method="_on_area_2d_area_entered"]
[connection signal="body_entered" from="HitBoxPuerta" to="." method="_on_hit_box_puerta_body_entered"]
[connection signal="timeout" from="TimeoutCierre" to="." method="_on_timeout_cierre_timeout"]
