[gd_scene load_steps=14 format=4 uid="uid://cd08dp16bixfv"]

[ext_resource type="Script" uid="uid://ccorfvcfa84gf" path="res://scripts/guildhall.gd" id="1_lsinl"]
[ext_resource type="TileSet" uid="uid://6im0g3eg6sr4" path="res://test_tiles.tres" id="1_qel1r"]
[ext_resource type="Script" uid="uid://dolqtw1ye4ras" path="res://scripts/player.gd" id="2_5n4iw"]
[ext_resource type="Texture2D" uid="uid://83ayd5rg7x8l" path="res://graphics/reception-table.png" id="3_13vc8"]
[ext_resource type="Texture2D" uid="uid://cg6ptmynq0aq0" path="res://graphics/basic-sprite.png" id="4_l3mu1"]
[ext_resource type="PackedScene" uid="uid://cf6nnjyp8kv78" path="res://templates/receptionist.tscn" id="5_l3mu1"]
[ext_resource type="PackedScene" uid="uid://b3mksvn2jf7e0" path="res://templates/quest_board.tscn" id="7_hph4e"]
[ext_resource type="Script" uid="uid://bh54wpqgau8hc" path="res://scripts/npc.gd" id="8_nhrwr"]
[ext_resource type="Texture2D" uid="uid://dcrhry67g00vk" path="res://graphics/pom.png" id="9_4bidn"]
[ext_resource type="PackedScene" uid="uid://jbqw0n6dlj08" path="res://templates/speech_bubble.tscn" id="10_6hdsl"]

[sub_resource type="NavigationPolygon" id="NavigationPolygon_w7eqs"]
vertices = PackedVector2Array(335, 241, 335, 128.77344, 360.28906, 141.42188, 399, 241, 582.1094, 145.17969, 582.10156, 145.17188, 589.9219, 141.70313, 689, 241, 377.28906, 149.92188, 411.46094, 167, 497, 241, 497, 305, 399, 305, 533.1875, 167, 613.1875, 131.32031, 689, 54.757813, 642.3672, 97.28125, 646.02344, 65.71875, 647.34375, 54.179688)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3), PackedInt32Array(4, 5, 6, 7), PackedInt32Array(3, 2, 8), PackedInt32Array(3, 8, 9, 10), PackedInt32Array(10, 11, 12, 3), PackedInt32Array(10, 9, 13, 7), PackedInt32Array(7, 13, 4), PackedInt32Array(7, 6, 14), PackedInt32Array(15, 7, 14, 16), PackedInt32Array(15, 16, 17), PackedInt32Array(18, 15, 17)])
outlines = Array[PackedVector2Array]([PackedVector2Array(315, 60, 337, 113, 415, 152, 530, 152, 604, 119, 628, 91, 634, 39, 706, 40, 708, -15, 317, -19)])
border_size = 250.0
agent_radius = 15.0

[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_l3mu1"]
radius = 15.0
height = 54.0

[sub_resource type="NavigationPolygon" id="NavigationPolygon_l3mu1"]
vertices = PackedVector2Array(117.96875, 286, 9.96875, 286, 9.03125, 0, 117.03125, 0)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3)])
outlines = Array[PackedVector2Array]([PackedVector2Array(-1, -10, 127, -10, 128, 296, 0, 296)])

[node name="Guildhall" type="Node2D"]
script = ExtResource("1_lsinl")

[node name="RoomRegion" type="NavigationRegion2D" parent="."]
navigation_polygon = SubResource("NavigationPolygon_w7eqs")

[node name="TileMapLayer" type="TileMapLayer" parent="RoomRegion"]
tile_map_data = PackedByteArray("AAAFAAIAAAAOAAEAAAAGAAIAAAAOAAEAAAAHAAIAAAAOAAEAAAAIAAIAAAAOAAEAAAAJAAIAAAAOAAEAAAAKAAIAAAAOAAEAAAAHAAEAAAAOAAEAAAAGAAEAAAAOAAEAAAAFAAEAAAAOAAEAAAAKAAEAAAAOAAEAAAAJAAEAAAAOAAEAAAAIAAEAAAAOAAEAAAALAAIAAAACAAUAAAALAAEAAAACAAUAAAAKAAAAAAAOAAEAAAAJAAAAAAAOAAEAAAAIAAAAAAAOAAEAAAAHAAAAAAAOAAEAAAAGAAAAAAAOAAEAAAAFAAAAAAAOAAEAAAALAAAAAAACAAUAAAAFAP//AAACAAQAAAAGAP//AAACAAQAAAAHAP//AAACAAQAAAAIAP//AAACAAQAAAAJAP//AAACAAQAAAAKAP//AAACAAQAAAALAP//AAABAAQAAAAEAP//AAAAAAQAAAAEAAAAAAACAAUAAAAEAAEAAAACAAUAAAAEAAIAAAACAAUAAAAEAAMAAAACAAUAAAAFAAMAAAAOAAEAAAAGAAMAAAAOAAEAAAAHAAMAAAAOAAEAAAAIAAMAAAAOAAEAAAAJAAMAAAAOAAEAAAAKAAMAAAAOAAEAAAALAAMAAAACAAUAAAAEAAQAAAAAAAUAAAAKAAQAAAACAAQAAAALAAQAAAABAAUAAAAFAAQAAAACAAQAAAAHAAQAAAAOAAEAAAAIAAQAAAACAAQAAAAGAAQAAAAOAAEAAAAJAAQAAAACAAQAAAA=")
tile_set = ExtResource("1_qel1r")

[node name="TileMapLayer2" type="TileMapLayer" parent="RoomRegion"]
visible = false
tile_map_data = PackedByteArray("AAANAAAAAAAKABEAAAAOAAAAAAAKABEAAAAPAAAAAAAKABEAAAAQAAAAAAAKABEAAAA=")
tile_set = ExtResource("1_qel1r")

[node name="Sprites" type="Node2D" parent="."]
z_index = 1
y_sort_enabled = true

[node name="Reception Desk" type="StaticBody2D" parent="Sprites"]
position = Vector2(472, 142)

[node name="Sprite2D" type="Sprite2D" parent="Sprites/Reception Desk"]
texture = ExtResource("3_13vc8")
offset = Vector2(0, -80)

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Sprites/Reception Desk"]
polygon = PackedVector2Array(-86, -160, -152, -160, -152, -107, -148, -75, -128, -35, -57, 0, 56, 0, 127, -34, 148, -75, 152, -107, 152, -160, 86, -160, 86, -115, 75, -93, 52, -81, -51, -81, -75, -92, -86, -114)

[node name="Receptionist" parent="Sprites" instance=ExtResource("5_l3mu1")]
visible = false
position = Vector2(467, 29)

[node name="Queue" parent="Sprites/Receptionist" index="3"]
position = Vector2(0, 220)

[node name="Player" type="CharacterBody2D" parent="Sprites"]
position = Vector2(451, 311)
script = ExtResource("2_5n4iw")

[node name="CollisionShape2D" type="CollisionShape2D" parent="Sprites/Player"]
rotation = 1.5707964
shape = SubResource("CapsuleShape2D_l3mu1")

[node name="Sprite2D" type="Sprite2D" parent="Sprites/Player"]
position = Vector2(0, -43)
texture = ExtResource("4_l3mu1")

[node name="NavigationAgent2D" type="NavigationAgent2D" parent="Sprites/Player"]
path_desired_distance = 30.0
avoidance_enabled = true

[node name="EntranceRegion" type="NavigationRegion2D" parent="."]
position = Vector2(385, 285)
navigation_polygon = SubResource("NavigationPolygon_l3mu1")

[node name="Quest Board" parent="." instance=ExtResource("7_hph4e")]
position = Vector2(670, 32)

[node name="Npc" type="CharacterBody2D" parent="."]
z_index = 1
position = Vector2(365, 39)
script = ExtResource("8_nhrwr")
metadata/_custom_type_script = "uid://bh54wpqgau8hc"

[node name="CollisionShape2D" type="CollisionShape2D" parent="Npc"]
position = Vector2(1, 16)
rotation = 1.5707964
shape = SubResource("CapsuleShape2D_l3mu1")

[node name="Sprite2D" type="Sprite2D" parent="Npc"]
texture = ExtResource("9_4bidn")

[node name="SpeechBubble" parent="Npc" instance=ExtResource("10_6hdsl")]
position = Vector2(44, -93)

[node name="NavigationAgent2D" type="NavigationAgent2D" parent="Npc"]
path_desired_distance = 30.0
avoidance_enabled = true

[editable path="Sprites/Receptionist"]
