[gd_scene load_steps=18 format=4 uid="uid://bcaea17ae7vo2"]

[ext_resource type="Texture2D" uid="uid://g2ahhi7vg2p0" path="res://tilemap/tile_timeloop_thing-Sheet.png" id="1_i7fc3"]
[ext_resource type="PackedScene" uid="uid://dlb0lm5y7kixb" path="res://objects/end.tscn" id="2_ra2xd"]
[ext_resource type="PackedScene" uid="uid://26601maon1a3" path="res://objects/player.tscn" id="3_l8svx"]
[ext_resource type="Script" path="res://scripts/loop.gd" id="4_ojm8q"]
[ext_resource type="Texture2D" uid="uid://s1sno304tcpg" path="res://sprites/loop_on.png" id="5_l7222"]
[ext_resource type="Texture2D" uid="uid://g868xar8uwri" path="res://sprites/loop_off.png" id="6_k5gb4"]
[ext_resource type="Texture2D" uid="uid://c078e80504moy" path="res://sprites/loop_recording.png" id="7_b34jo"]
[ext_resource type="Script" path="res://scripts/button.gd" id="8_vfyhf"]
[ext_resource type="Texture2D" uid="uid://g2fdntsfaq3w" path="res://sprites/button_on.png" id="9_1tsc8"]
[ext_resource type="Texture2D" uid="uid://c54lkh6c2mbh6" path="res://sprites/button_off.png" id="10_fhjpy"]
[ext_resource type="Texture2D" uid="uid://dxm1s8rbda2vy" path="res://sprites/doorNo.png" id="11_a5xpv"]
[ext_resource type="Texture2D" uid="uid://boa6rd22npb1j" path="res://sprites/doorYes.png" id="12_7p0rp"]
[ext_resource type="PackedScene" uid="uid://cjgovccsqtt4q" path="res://objects/box.tscn" id="13_1jr8e"]

[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_px5vt"]
texture = ExtResource("1_i7fc3")
use_texture_padding = false
0:0/0 = 0
0:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
1:0/0 = 0
1:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
2:0/0 = 0
2:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
3:0/0 = 0
4:0/0 = 0
4:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
5:0/0 = 0
6:0/0 = 0
0:1/0 = 0
0:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
1:1/0 = 0
1:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
2:1/0 = 0
2:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
3:1/0 = 0
3:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
5:1/0 = 0
5:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
6:1/0 = 0
6:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
0:2/0 = 0
0:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
1:2/0 = 0
1:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
2:2/0 = 0
2:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
4:2/0 = 0
4:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
6:2/0 = 0
6:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)

[sub_resource type="TileSet" id="TileSet_vqdy4"]
physics_layer_0/collision_layer = 1
sources/1 = SubResource("TileSetAtlasSource_px5vt")

[sub_resource type="RectangleShape2D" id="RectangleShape2D_0ai5g"]
size = Vector2(12, 12)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_ljrbx"]
size = Vector2(14, 14)

[node name="Scene0" type="Node2D"]

[node name="TileMapLayer" type="TileMapLayer" parent="."]
texture_filter = 1
position = Vector2(24, -8)
tile_map_data = PackedByteArray("[encoded data, 5716 characters]")
tile_set = SubResource("TileSet_vqdy4")

[node name="Player" parent="." instance=ExtResource("3_l8svx")]
top_level = true

[node name="s" type="Camera2D" parent="."]
position = Vector2(56, 16)
zoom = Vector2(3.5, 3.5)

[node name="Loop" type="Area2D" parent="."]
position = Vector2(0, -16)
script = ExtResource("4_ojm8q")

[node name="SpriteOn" type="Sprite2D" parent="Loop"]
visible = false
texture_filter = 1
texture = ExtResource("5_l7222")

[node name="SpriteOff" type="Sprite2D" parent="Loop"]
texture_filter = 1
texture = ExtResource("6_k5gb4")

[node name="SpriteRecording" type="Sprite2D" parent="Loop"]
visible = false
texture_filter = 1
texture = ExtResource("7_b34jo")

[node name="CollisionShape2D" type="CollisionShape2D" parent="Loop"]
shape = SubResource("RectangleShape2D_0ai5g")

[node name="Loop2" type="Area2D" parent="."]
position = Vector2(112, -32)
script = ExtResource("4_ojm8q")

[node name="SpriteOn" type="Sprite2D" parent="Loop2"]
visible = false
texture_filter = 1
texture = ExtResource("5_l7222")

[node name="SpriteOff" type="Sprite2D" parent="Loop2"]
texture_filter = 1
texture = ExtResource("6_k5gb4")

[node name="SpriteRecording" type="Sprite2D" parent="Loop2"]
visible = false
texture_filter = 1
texture = ExtResource("7_b34jo")

[node name="CollisionShape2D" type="CollisionShape2D" parent="Loop2"]
shape = SubResource("RectangleShape2D_0ai5g")

[node name="Button" type="Area2D" parent="." node_paths=PackedStringArray("Door")]
position = Vector2(32, 16)
script = ExtResource("8_vfyhf")
Door = NodePath("../Door")

[node name="SpriteOn" type="Sprite2D" parent="Button"]
visible = false
texture_filter = 1
texture = ExtResource("9_1tsc8")

[node name="SpriteOff" type="Sprite2D" parent="Button"]
texture_filter = 1
texture = ExtResource("10_fhjpy")

[node name="CollisionShape2D" type="CollisionShape2D" parent="Button"]
shape = SubResource("RectangleShape2D_0ai5g")

[node name="ButtonFinal" type="Area2D" parent="." node_paths=PackedStringArray("Door")]
position = Vector2(32, -16)
script = ExtResource("8_vfyhf")
Door = NodePath("../DoorFinal")

[node name="SpriteOn" type="Sprite2D" parent="ButtonFinal"]
visible = false
texture_filter = 1
texture = ExtResource("9_1tsc8")

[node name="SpriteOff" type="Sprite2D" parent="ButtonFinal"]
texture_filter = 1
texture = ExtResource("10_fhjpy")

[node name="CollisionShape2D" type="CollisionShape2D" parent="ButtonFinal"]
shape = SubResource("RectangleShape2D_0ai5g")

[node name="Button2" type="Area2D" parent="." node_paths=PackedStringArray("Door")]
position = Vector2(80, 16)
script = ExtResource("8_vfyhf")
Door = NodePath("../Door2")

[node name="SpriteOn" type="Sprite2D" parent="Button2"]
visible = false
texture_filter = 1
texture = ExtResource("9_1tsc8")

[node name="SpriteOff" type="Sprite2D" parent="Button2"]
texture_filter = 1
texture = ExtResource("10_fhjpy")

[node name="CollisionShape2D" type="CollisionShape2D" parent="Button2"]
shape = SubResource("RectangleShape2D_0ai5g")

[node name="Button3" type="Area2D" parent="." node_paths=PackedStringArray("Door")]
position = Vector2(48, 80)
script = ExtResource("8_vfyhf")
Door = NodePath("../Door3")

[node name="SpriteOn" type="Sprite2D" parent="Button3"]
visible = false
texture_filter = 1
texture = ExtResource("9_1tsc8")

[node name="SpriteOff" type="Sprite2D" parent="Button3"]
texture_filter = 1
texture = ExtResource("10_fhjpy")

[node name="CollisionShape2D" type="CollisionShape2D" parent="Button3"]
shape = SubResource("RectangleShape2D_0ai5g")

[node name="Button4" type="Area2D" parent="." node_paths=PackedStringArray("Door")]
position = Vector2(128, 32)
script = ExtResource("8_vfyhf")
Door = NodePath("../Door4")

[node name="SpriteOn" type="Sprite2D" parent="Button4"]
visible = false
texture_filter = 1
texture = ExtResource("9_1tsc8")

[node name="SpriteOff" type="Sprite2D" parent="Button4"]
texture_filter = 1
texture = ExtResource("10_fhjpy")

[node name="CollisionShape2D" type="CollisionShape2D" parent="Button4"]
shape = SubResource("RectangleShape2D_0ai5g")

[node name="Door" type="StaticBody2D" parent="."]
position = Vector2(0, 32)

[node name="CollisionShape2D" type="CollisionShape2D" parent="Door"]
shape = SubResource("RectangleShape2D_ljrbx")

[node name="SpriteNo" type="Sprite2D" parent="Door"]
texture_filter = 1
texture = ExtResource("11_a5xpv")

[node name="SpriteYes" type="Sprite2D" parent="Door"]
visible = false
texture_filter = 1
texture = ExtResource("12_7p0rp")

[node name="Door2" type="StaticBody2D" parent="."]
position = Vector2(80, 0)

[node name="CollisionShape2D" type="CollisionShape2D" parent="Door2"]
shape = SubResource("RectangleShape2D_ljrbx")

[node name="SpriteNo" type="Sprite2D" parent="Door2"]
texture_filter = 1
texture = ExtResource("11_a5xpv")

[node name="SpriteYes" type="Sprite2D" parent="Door2"]
visible = false
texture_filter = 1
texture = ExtResource("12_7p0rp")

[node name="Door3" type="StaticBody2D" parent="."]
position = Vector2(64, 64)

[node name="CollisionShape2D" type="CollisionShape2D" parent="Door3"]
shape = SubResource("RectangleShape2D_ljrbx")

[node name="SpriteNo" type="Sprite2D" parent="Door3"]
texture_filter = 1
texture = ExtResource("11_a5xpv")

[node name="SpriteYes" type="Sprite2D" parent="Door3"]
visible = false
texture_filter = 1
texture = ExtResource("12_7p0rp")

[node name="Door4" type="StaticBody2D" parent="."]
position = Vector2(0, 80)

[node name="CollisionShape2D" type="CollisionShape2D" parent="Door4"]
shape = SubResource("RectangleShape2D_ljrbx")

[node name="SpriteNo" type="Sprite2D" parent="Door4"]
texture_filter = 1
texture = ExtResource("11_a5xpv")

[node name="SpriteYes" type="Sprite2D" parent="Door4"]
visible = false
texture_filter = 1
texture = ExtResource("12_7p0rp")

[node name="DoorFinal" type="StaticBody2D" parent="."]
position = Vector2(16, -32)

[node name="CollisionShape2D" type="CollisionShape2D" parent="DoorFinal"]
shape = SubResource("RectangleShape2D_ljrbx")

[node name="SpriteNo" type="Sprite2D" parent="DoorFinal"]
texture_filter = 1
texture = ExtResource("11_a5xpv")

[node name="SpriteYes" type="Sprite2D" parent="DoorFinal"]
visible = false
texture_filter = 1
texture = ExtResource("12_7p0rp")

[node name="Box0" parent="." instance=ExtResource("13_1jr8e")]
position = Vector2(48, 64)

[node name="End" parent="." instance=ExtResource("2_ra2xd")]
position = Vector2(16, -48)

[connection signal="area_entered" from="Loop" to="Loop" method="_on_area_entered"]
[connection signal="area_exited" from="Loop" to="Loop" method="_on_area_exited"]
[connection signal="area_entered" from="Loop2" to="Loop2" method="_on_area_entered"]
[connection signal="area_exited" from="Loop2" to="Loop2" method="_on_area_exited"]
[connection signal="area_entered" from="Button" to="Button" method="_on_area_entered"]
[connection signal="area_exited" from="Button" to="Button" method="_on_area_exited"]
[connection signal="area_entered" from="ButtonFinal" to="ButtonFinal" method="_on_area_entered"]
[connection signal="area_exited" from="ButtonFinal" to="ButtonFinal" method="_on_area_exited"]
[connection signal="area_entered" from="Button2" to="Button2" method="_on_area_entered"]
[connection signal="area_exited" from="Button2" to="Button2" method="_on_area_exited"]
[connection signal="area_entered" from="Button3" to="Button3" method="_on_area_entered"]
[connection signal="area_exited" from="Button3" to="Button3" method="_on_area_exited"]
[connection signal="area_entered" from="Button4" to="Button4" method="_on_area_entered"]
[connection signal="area_exited" from="Button4" to="Button4" method="_on_area_exited"]
[connection signal="area_entered" from="End" to="Player" method="_on_end_area_entered"]
