[gd_scene load_steps=17 format=4 uid="uid://dp8gnj24gg7yw"]

[ext_resource type="Texture2D" uid="uid://g2ahhi7vg2p0" path="res://tilemap/tile_timeloop_thing-Sheet.png" id="1_xg3yt"]
[ext_resource type="PackedScene" uid="uid://dlb0lm5y7kixb" path="res://objects/end.tscn" id="2_283c1"]
[ext_resource type="PackedScene" uid="uid://26601maon1a3" path="res://objects/player.tscn" id="3_ik4i8"]
[ext_resource type="Script" path="res://scripts/button.gd" id="4_xssfj"]
[ext_resource type="Texture2D" uid="uid://g2fdntsfaq3w" path="res://sprites/button_on.png" id="5_f4qne"]
[ext_resource type="Texture2D" uid="uid://s1sno304tcpg" path="res://sprites/loop_on.png" id="5_p2j3i"]
[ext_resource type="Texture2D" uid="uid://g868xar8uwri" path="res://sprites/loop_off.png" id="6_i6dfl"]
[ext_resource type="Texture2D" uid="uid://c54lkh6c2mbh6" path="res://sprites/button_off.png" id="6_u6nnl"]
[ext_resource type="Texture2D" uid="uid://dxm1s8rbda2vy" path="res://sprites/doorNo.png" id="7_6qlxh"]
[ext_resource type="Texture2D" uid="uid://c078e80504moy" path="res://sprites/loop_recording.png" id="7_acv2j"]
[ext_resource type="Script" path="res://scripts/loop.gd" id="7_x64fs"]
[ext_resource type="Texture2D" uid="uid://boa6rd22npb1j" path="res://sprites/doorYes.png" id="8_u32m0"]

[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_px5vt"]
texture = ExtResource("1_xg3yt")
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("AAD+/wEAAQAFAAAAAAD//wEAAQAFAAAAAAD+/wAAAQAFAAAAAAAAAAEAAQAFAAAAAAAAAAAAAQAFAAAAAAAAAP//AQAFAAAAAAD+////AQAFAAAAAAD/////AQAFAAAAAAD//wAAAQABAAEAAAD+/wIAAQABAAAAAAD//wIAAQABAAAAAAAAAAIAAQABAAAAAAABAAEAAQAAAAEAAAABAAAAAQAAAAEAAAABAP//AQAAAAEAAAAAAP7/AQABAAIAAAD///7/AQABAAIAAAD+//7/AQABAAIAAAD9/wAAAQAEAAIAAAD9////AQACAAEAAAD9/wIAAQABAAAAAAD9/wEAAQAFAAAAAAD8/wEAAQAFAAAAAAD8/wAAAQAFAAAAAAD7/wEAAQAFAAAAAAD6/wEAAQADAAAAAAD8/wIAAQABAAAAAAD7/wIAAQABAAAAAAD6/wIAAQABAAAAAAD5/wEAAQACAAEAAAD6/wAAAQABAAIAAAD7/wAAAQACAAIAAAD8////AQABAAIAAAABAAIAAQABAAEAAAABAP7/AQABAAEAAAD9//7/AQABAAEAAAD8//7/AQABAAEAAAD7//7/AQABAAEAAAD7////AQABAAEAAAD6//7/AQABAAEAAAD6////AQABAAEAAAD5////AQABAAEAAAD5//7/AQABAAEAAAD5/wAAAQABAAEAAAD5/wIAAQABAAEAAAD5/wMAAQABAAEAAAD6/wMAAQABAAEAAAD7/wMAAQABAAEAAAD8/wMAAQABAAEAAAD9/wMAAQABAAEAAAD+/wMAAQABAAEAAAD//wMAAQABAAEAAAAAAAMAAQABAAEAAAABAAMAAQABAAEAAAACAAMAAQABAAEAAAACAAIAAQABAAEAAAACAAEAAQABAAEAAAACAAAAAQABAAEAAAACAP//AQABAAEAAAACAP7/AQABAAEAAAD5//3/AQABAAEAAAD6//3/AQABAAEAAAD7//3/AQABAAEAAAD8//3/AQABAAEAAAD9//3/AQABAAEAAAD+//3/AQABAAEAAAD///3/AQABAAEAAAAAAP3/AQABAAEAAAABAP3/AQABAAEAAAACAP3/AQABAAEAAAADAP3/AQABAAEAAAADAP7/AQABAAEAAAADAP//AQABAAEAAAADAAAAAQABAAEAAAADAAEAAQABAAEAAAADAAIAAQABAAEAAAADAAMAAQABAAEAAAADAAQAAQABAAEAAAACAAQAAQABAAEAAAABAAQAAQABAAEAAAD8/wQAAQABAAEAAAD7/wQAAQABAAEAAAD6/wQAAQABAAEAAAD9/wQAAQABAAEAAAD+/wQAAQABAAEAAAD//wQAAQABAAEAAAAAAAQAAQABAAEAAAD5/wQAAQABAAEAAAD4/wQAAQABAAEAAAD4/wMAAQABAAEAAAD4/wIAAQABAAEAAAD4/wEAAQABAAEAAAD4/wAAAQABAAEAAAD4////AQABAAEAAAD4//7/AQABAAEAAAD4//3/AQABAAEAAAD4//z/AQABAAEAAAD5//z/AQABAAEAAAD6//z/AQABAAEAAAD7//z/AQABAAEAAAD8//z/AQABAAEAAAD9//z/AQABAAEAAAD+//z/AQABAAEAAAD///z/AQABAAEAAAAAAPz/AQABAAEAAAABAPz/AQABAAEAAAACAPz/AQABAAEAAAADAPz/AQABAAEAAAAEAPz/AQABAAEAAAAEAP3/AQABAAEAAAAEAP7/AQABAAEAAAAEAP//AQABAAEAAAAEAAAAAQABAAEAAAAEAAEAAQABAAEAAAAEAAIAAQABAAEAAAAEAAMAAQABAAEAAAAEAAQAAQABAAEAAAD3/wQAAQABAAEAAAD3/wMAAQABAAEAAAD3/wIAAQABAAEAAAD3/wEAAQABAAEAAAD3////AQABAAEAAAD3//7/AQABAAEAAAD3//3/AQABAAEAAAD3//z/AQABAAEAAAD3/wAAAQABAAEAAAD3/wUAAQABAAEAAAD4/wUAAQABAAEAAAD5/wUAAQABAAEAAAD6/wUAAQABAAEAAAD7/wUAAQABAAEAAAD8/wUAAQABAAEAAAD9/wUAAQABAAEAAAD+/wUAAQABAAEAAAD//wUAAQABAAEAAAAAAAUAAQABAAEAAAABAAUAAQABAAEAAAACAAUAAQABAAEAAAADAAUAAQABAAEAAAAEAAUAAQABAAEAAAA=")
tile_set = SubResource("TileSet_vqdy4")

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

[node name="s" type="Camera2D" parent="."]
position = Vector2(-8, 8)
zoom = Vector2(6, 6)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[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="Button" to="Button" method="_on_area_entered"]
[connection signal="area_exited" from="Button" to="Button" 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="End" to="Player" method="_on_end_area_entered"]
