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

[ext_resource type="Script" uid="uid://dpfhi8n1xir6u" path="res://level/segmento.gd" id="1_cpwy5"]
[ext_resource type="Texture2D" uid="uid://c16vighrfkrfj" path="res://level/pantalla_vacio.png" id="2_p4hkt"]
[ext_resource type="PackedScene" uid="uid://bnnodv20y2rik" path="res://level/pared-puerta-media.tscn" id="3_2gslp"]
[ext_resource type="PackedScene" uid="uid://daq7xs18jj46l" path="res://level/pared-entrada.tscn" id="3_vdq1o"]
[ext_resource type="Texture2D" uid="uid://du55c8kfpc4oi" path="res://level/objetos/reloj.png" id="5_8p1bk"]
[ext_resource type="Texture2D" uid="uid://c44y2n05dptji" path="res://level/objetos/felpudo.png" id="6_cpdde"]

[sub_resource type="AtlasTexture" id="AtlasTexture_ho8sf"]
atlas = ExtResource("5_8p1bk")
region = Rect2(0, 0, 50, 150)

[sub_resource type="AtlasTexture" id="AtlasTexture_y370x"]
atlas = ExtResource("5_8p1bk")
region = Rect2(50, 0, 50, 150)

[sub_resource type="AtlasTexture" id="AtlasTexture_f7obp"]
atlas = ExtResource("5_8p1bk")
region = Rect2(100, 0, 50, 150)

[sub_resource type="AtlasTexture" id="AtlasTexture_wqu7s"]
atlas = ExtResource("5_8p1bk")
region = Rect2(150, 0, 50, 150)

[sub_resource type="SpriteFrames" id="SpriteFrames_ons80"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ho8sf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_y370x")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_f7obp")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wqu7s")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_cpwy5"]
size = Vector2(255, 84)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_2gslp"]
size = Vector2(535, 84)

[node name="SegmentoInicial" type="Node2D" unique_id=1899549351]
script = ExtResource("1_cpwy5")
tiene_pared = true
tiene_decoracion = true

[node name="Fondo" type="Sprite2D" parent="." unique_id=1866140731]
z_index = -2
texture = ExtResource("2_p4hkt")
centered = false

[node name="reloj" type="AnimatedSprite2D" parent="Fondo" unique_id=1114130495]
position = Vector2(189, 18)
sprite_frames = SubResource("SpriteFrames_ons80")
autoplay = "default"
frame_progress = 0.6150959
speed_scale = 0.3

[node name="felpudo" type="Sprite2D" parent="Fondo" unique_id=1563722910]
position = Vector2(115, 114)
texture = ExtResource("6_cpdde")
offset = Vector2(0, 35)

[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="Fondo" unique_id=1259963328]
position = Vector2(525, 10)
rect = Rect2(-98, -10, 108, 219)

[node name="pared" parent="." unique_id=227649960 instance=ExtResource("3_2gslp")]
position = Vector2(394, 0)

[node name="paredEntrada" parent="." unique_id=1654913467 instance=ExtResource("3_vdq1o")]
y_sort_enabled = true

[node name="colisiones" type="Node2D" parent="." unique_id=1314761477]

[node name="StaticBody2D" type="StaticBody2D" parent="colisiones" unique_id=60004455]

[node name="CollisionShape2D" type="CollisionShape2D" parent="colisiones/StaticBody2D" unique_id=1769413812]
position = Vector2(266.5, 41)
shape = SubResource("RectangleShape2D_cpwy5")

[node name="StaticBody2D2" type="StaticBody2D" parent="colisiones" unique_id=534305327]
position = Vector2(0, 222)

[node name="CollisionShape2D" type="CollisionShape2D" parent="colisiones/StaticBody2D2" unique_id=1386767388]
position = Vector2(267.5, 41)
shape = SubResource("RectangleShape2D_2gslp")

[connection signal="screen_entered" from="Fondo/VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_entered"]
