[gd_scene load_steps=13 format=4 uid="uid://o8n5c7341ceq"]

[ext_resource type="Texture2D" uid="uid://g2ahhi7vg2p0" path="res://tilemap/tile_timeloop_thing-Sheet.png" id="1_h8yn3"]
[ext_resource type="PackedScene" uid="uid://dlb0lm5y7kixb" path="res://objects/end.tscn" id="2_r34q3"]
[ext_resource type="PackedScene" uid="uid://26601maon1a3" path="res://objects/player.tscn" id="3_4vfxs"]
[ext_resource type="Script" path="res://scripts/button.gd" id="4_74al8"]
[ext_resource type="Texture2D" uid="uid://c54lkh6c2mbh6" path="res://sprites/button_off.png" id="5_gkfrc"]
[ext_resource type="Texture2D" uid="uid://dxm1s8rbda2vy" path="res://sprites/doorNo.png" id="6_rnfny"]
[ext_resource type="Texture2D" uid="uid://boa6rd22npb1j" path="res://sprites/doorYes.png" id="7_vkska"]
[ext_resource type="PackedScene" uid="uid://cjgovccsqtt4q" path="res://objects/box.tscn" id="9_k1gc5"]

[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_px5vt"]
texture = ExtResource("1_h8yn3")
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, 4164 characters]")
tile_set = SubResource("TileSet_vqdy4")

[node name="End" parent="." instance=ExtResource("2_r34q3")]
position = Vector2(-112, -32)

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

[node name="s" type="Camera2D" parent="."]
position = Vector2(-58, -22)
zoom = Vector2(4, 4)

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

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

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

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

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

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

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

[node name="BoxStart" parent="." instance=ExtResource("9_k1gc5")]
position = Vector2(-16, 0)

[node name="Box0" parent="." instance=ExtResource("9_k1gc5")]
position = Vector2(-96, 0)

[node name="Box1" parent="." instance=ExtResource("9_k1gc5")]
position = Vector2(-96, -16)

[node name="Box2" parent="." instance=ExtResource("9_k1gc5")]
position = Vector2(-96, -32)

[node name="Box3" parent="." instance=ExtResource("9_k1gc5")]
position = Vector2(-96, -48)

[node name="Box4" parent="." instance=ExtResource("9_k1gc5")]
position = Vector2(-96, -64)

[connection signal="area_entered" from="End" to="Player" method="_on_end_area_entered"]
[connection signal="area_entered" from="Button" to="Button" method="_on_area_entered"]
[connection signal="area_exited" from="Button" to="Button" method="_on_area_exited"]
