[gd_scene format=4 uid="uid://bwt0ijoq4qmhn"]

[ext_resource type="Script" uid="uid://btg630l3xo16w" path="res://Maps/Common/Scripts/shop.gd" id="1_83xsp"]
[ext_resource type="TileSet" uid="uid://df0lg5vkqwbbt" path="res://Resources/Tilesets/home_interior.tres" id="2_kt7c3"]
[ext_resource type="Script" uid="uid://cpr710p4wdgx" path="res://Maps/Connectors/Scripts/shop_item_label_connector.gd" id="2_r8s0p"]
[ext_resource type="PackedScene" uid="uid://ddgeo3vwebqeg" path="res://Entities/Map Objects/Mechanisms/shop_item.tscn" id="3_7ftpj"]
[ext_resource type="Script" uid="uid://dkcsftcdqtmg" path="res://Maps/Connectors/Scripts/spawn_marker_connector.gd" id="3_t8w5b"]
[ext_resource type="Texture2D" uid="uid://hop1gedjh8s4" path="res://Assets/Spritesheets/Player/icons_full_32.png" id="4_r8s0p"]
[ext_resource type="PackedScene" uid="uid://6athlweutl2g" path="res://Entities/Characters/Player/player.tscn" id="5_6ky6i"]
[ext_resource type="Texture2D" uid="uid://crebnygky3qv0" path="res://Assets/Sprites/Black Square.png" id="6_kt7c3"]
[ext_resource type="PackedScene" uid="uid://bbules4o3xayc" path="res://Entities/Map Objects/Loading Zone/loading_zone_transporter.tscn" id="6_t8w5b"]
[ext_resource type="Texture2D" uid="uid://bf6llktwqhs8l" path="res://Assets/Sprites/Door Fade.png" id="7_7ftpj"]
[ext_resource type="PackedScene" uid="uid://ca75b65eh7vv8" path="res://Entities/Map Objects/Loading Zone/collision_loading_zone.tscn" id="9_kp1fr"]

[sub_resource type="AtlasTexture" id="AtlasTexture_fdj0q"]
atlas = ExtResource("4_r8s0p")
region = Rect2(0, 960, 32, 32)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_fdj0q"]
size = Vector2(8, 6)

[sub_resource type="AtlasTexture" id="AtlasTexture_k6jq0"]
atlas = ExtResource("4_r8s0p")
region = Rect2(128, 704, 32, 32)

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

[sub_resource type="AtlasTexture" id="AtlasTexture_3ps1r"]
atlas = ExtResource("4_r8s0p")
region = Rect2(32, 544, 32, 32)

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

[sub_resource type="RectangleShape2D" id="RectangleShape2D_kp1fr"]
size = Vector2(32, 6)

[node name="Shop" type="Node2D" unique_id=547318403]
script = ExtResource("1_83xsp")

[node name="Shop Item Notification Connector" type="Node" parent="." unique_id=1088308326]
script = ExtResource("2_r8s0p")

[node name="Spawn Marker Connector" type="Node" parent="." unique_id=2053338893 node_paths=PackedStringArray("player", "markers")]
script = ExtResource("3_t8w5b")
player = NodePath("../Player")
markers = NodePath("../Spawn Markers")

[node name="Tilemap" type="Node2D" parent="." unique_id=81778152]

[node name="TileMapLayer" type="TileMapLayer" parent="Tilemap" unique_id=1856499099]
tile_map_data = PackedByteArray("AAANAAgAAQAAAAIAAAANAAkAAQAAAAMAAAAOAAgAAQABAAIAAAAOAAkAAQABAAMAAAANAAoAAQAAAAIAAAANAAsAAQAAAAMAAAAOAAoAAQABAAIAAAAOAAsAAQABAAMAAAAPAAoAAQAAAAIAAAAPAAsAAQAAAAMAAAAQAAoAAQABAAIAAAAQAAsAAQABAAMAAAARAAoAAQAAAAIAAAARAAsAAQAAAAMAAAASAAoAAQABAAIAAAASAAsAAQABAAMAAAATAAoAAQAAAAIAAAATAAsAAQAAAAMAAAAUAAoAAQABAAIAAAAUAAsAAQABAAMAAAAVAAoAAQAAAAIAAAAVAAsAAQAAAAMAAAAWAAoAAQABAAIAAAAWAAsAAQABAAMAAAAXAAoAAQAAAAIAAAAXAAsAAQAAAAMAAAAYAAoAAQABAAIAAAAYAAsAAQABAAMAAAAZAAoAAQAAAAIAAAAZAAsAAQAAAAMAAAAaAAoAAQABAAIAAAAaAAsAAQABAAMAAAAZAAgAAQAAAAIAAAAZAAkAAQAAAAMAAAAaAAgAAQABAAIAAAAaAAkAAQABAAMAAAAXAAgAAQAAAAI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AAKAAcAAAAAAAEAAAAKAAgAAAAAAAEAAAAKAAkAAAAAAAEAAAAKAAoAAAAAAAEAAAAKAAsAAAAAAAEAAAAKAAwAAAAAAAEAAAAKAA0AAAAAAAEAAAAKAAQAAAAAAAAAAAAbAAQAAAACAAAAAAAKAA4AAAAAAAIAAAALAA4AAAABAAIAAAAMAA4AAAAEAAEAAAAPAA4AAAADAAEAAAAUAA4AAAABAAIAAAAVAA4AAAABAAIAAAAWAA4AAAABAAIAAAAXAA4AAAABAAIAAAAYAA4AAAABAAIAAAAZAA4AAAABAAIAAAAaAA4AAAABAAIAAAAbAA4AAAACAAIAAAAQAA4AAAABAAIAAAARAA4AAAABAAIAAAASAA4AAAABAAIAAAATAA4AAAABAAIAAAANAA4AAQAAAAIAAAAOAA4AAQABAAIAAAAPAA8AAAACAAIAAAAMAA8AAAAAAAIAAAA=")
tile_set = ExtResource("2_kt7c3")

[node name="TileMapLayer2" type="TileMapLayer" parent="Tilemap" unique_id=970584760]
tile_map_data = PackedByteArray("AAALAAkAAgADAAIAAAALAAoAAgADAAMAAAAMAAkAAgAEAAIAAAAMAAoAAgAEAAMAAAANAAkAAgAEAAIAAAANAAoAAgAEAAMAAAAOAAkAAgAEAAIAAAAOAAoAAgAEAAMAAAAPAAkAAgAEAAIAAAAPAAoAAgAEAAMAAAAQAAkAAgAFAAIAAAAQAAoAAgAFAAMAAAATAAkAAgADAAIAAAATAAoAAgADAAMAAAAUAAkAAgAEAAIAAAAUAAoAAgAEAAMAAAAVAAkAAgAEAAIAAAAVAAoAAgAEAAMAAAAWAAkAAgAEAAIAAAAWAAoAAgAEAAMAAAAXAAkAAgAEAAIAAAAXAAoAAgAEAAMAAAAYAAkAAgAEAAIAAAAYAAoAAgAEAAMAAAAZAAkAAgAEAAIAAAAZAAoAAgAEAAMAAAAaAAkAAgAFAAIAAAAaAAoAAgAFAAMAAAA=")
tile_set = ExtResource("2_kt7c3")

[node name="Items For Sale" type="Node2D" parent="." unique_id=1720300524]

[node name="Wooden Sword" parent="Items For Sale" unique_id=8248758 instance=ExtResource("3_7ftpj")]
position = Vector2(193, 156)

[node name="Sprite" type="Sprite2D" parent="Items For Sale/Wooden Sword" unique_id=1754807739]
scale = Vector2(0.5, 0.5)
texture = SubResource("AtlasTexture_fdj0q")

[node name="CollisionShape2D" type="CollisionShape2D" parent="Items For Sale/Wooden Sword" unique_id=145882430]
position = Vector2(-1, 8)
shape = SubResource("RectangleShape2D_fdj0q")
debug_color = Color(0.9710676, 0.103622, 0.35069537, 0.41960785)

[node name="Bronze Key" parent="Items For Sale" unique_id=1844694995 instance=ExtResource("3_7ftpj")]
position = Vector2(219, 159)
check_location = 1

[node name="Sprite" type="Sprite2D" parent="Items For Sale/Bronze Key" unique_id=1718023639]
position = Vector2(6, -2)
scale = Vector2(0.5, 0.5)
texture = SubResource("AtlasTexture_k6jq0")

[node name="CollisionShape2D" type="CollisionShape2D" parent="Items For Sale/Bronze Key" unique_id=228842260]
position = Vector2(6, 4)
shape = SubResource("RectangleShape2D_83xsp")
debug_color = Color(0.9710676, 0.103622, 0.35069537, 0.41960785)

[node name="Potion" parent="Items For Sale" unique_id=817810520 instance=ExtResource("3_7ftpj")]
position = Vector2(255, 156)
check_location = 2

[node name="Sprite" type="Sprite2D" parent="Items For Sale/Potion" unique_id=625278572]
scale = Vector2(0.5, 0.5)
texture = SubResource("AtlasTexture_3ps1r")

[node name="CollisionShape2D" type="CollisionShape2D" parent="Items For Sale/Potion" unique_id=2016098276]
position = Vector2(0, 7)
shape = SubResource("RectangleShape2D_kt7c3")
debug_color = Color(0.9710676, 0.103622, 0.35069537, 0.41960785)

[node name="Loading Zones" type="Node2D" parent="." unique_id=525992692]

[node name="Collision Loading Zone" parent="Loading Zones" unique_id=1043800735 node_paths=PackedStringArray("loading_zone_transporter") instance=ExtResource("9_kp1fr")]
loading_zone_transporter = NodePath("Loading Zone Transporter")

[node name="CollisionShape2D" type="CollisionShape2D" parent="Loading Zones/Collision Loading Zone" unique_id=1798970421]
position = Vector2(224, 243)
shape = SubResource("RectangleShape2D_kp1fr")

[node name="Loading Zone Transporter" parent="Loading Zones/Collision Loading Zone" unique_id=1690817663 instance=ExtResource("6_t8w5b")]
destination_marker_name = "Shop Entrance"

[node name="Spawn Markers" type="Node2D" parent="." unique_id=680471197]

[node name="Shop Entrance" type="Marker2D" parent="Spawn Markers" unique_id=122141189]
position = Vector2(223, 225)

[node name="Player" parent="." unique_id=1502234578 instance=ExtResource("5_6ky6i")]
position = Vector2(289, 174)

[node name="Camera2D" type="Camera2D" parent="." unique_id=1684491254]
position = Vector2(307, 165)
zoom = Vector2(3, 3)

[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1847766034]

[node name="Item Notification" type="Label" parent="CanvasLayer" unique_id=55309360]
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -40.0
offset_top = -23.0
grow_horizontal = 0
grow_vertical = 0

[node name="Background" type="Sprite2D" parent="." unique_id=607338553]
z_index = -999
position = Vector2(356.5, 187.5)
scale = Vector2(23.28125, 12.71875)
texture = ExtResource("6_kt7c3")

[node name="Door Fade" type="Sprite2D" parent="." unique_id=833339897]
position = Vector2(224, 232)
scale = Vector2(2, 1)
texture = ExtResource("7_7ftpj")

[connection signal="InteractScannerAreaEntered" from="Player" to="Shop Item Notification Connector" method="OnPlayerInteractScannerAreaEntered"]
[connection signal="InteractScannerAreaExited" from="Player" to="Shop Item Notification Connector" method="OnPlayerInteractScannerAreaExited"]
