[gd_scene load_steps=15 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"]
[ext_resource type="Texture2D" uid="uid://cg42wsmb3ocfq" path="res://graphics/first-guild.png" id="11_4bidn"]

[sub_resource type="NavigationPolygon" id="NavigationPolygon_w7eqs"]
vertices = PackedVector2Array(335, 241, 335, 111.36719, 378.1875, 129.53125, 399, 241, 395.97656, 137, 523.21875, 137, 497, 241, 624.0469, 71.046875, 689, 30, 689, 241, 588.78125, 107.5, 497, 305, 399, 305, 630.75, 30, 582.15625, 110.47656)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3), PackedInt32Array(3, 2, 4), PackedInt32Array(3, 4, 5, 6), PackedInt32Array(7, 8, 9, 6, 10), PackedInt32Array(6, 11, 12, 3), PackedInt32Array(7, 13, 8), PackedInt32Array(10, 6, 5, 14)])
outlines = Array[PackedVector2Array]([PackedVector2Array(315, 60, 330, 93, 399, 122, 520, 122, 580, 95, 610, 64, 618, 15, 695, 15, 695, -18, 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(112, 144, 14, 144, 14, -69, 112, -69)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3)])
outlines = Array[PackedVector2Array]([PackedVector2Array(4, -79, 122, -79, 122, 154, 4, 154)])

[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"]
visible = false
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="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(497, 136)
texture = ExtResource("11_4bidn")

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

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

[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")]
position = Vector2(457, 32)

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

[node name="Player" type="CharacterBody2D" parent="Sprites"]
position = Vector2(451, 430)
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, 374)
navigation_polygon = SubResource("NavigationPolygon_l3mu1")

[node name="Quest Board" parent="." instance=ExtResource("7_hph4e")]
position = Vector2(654, -2)

[node name="Npc" type="CharacterBody2D" parent="."]
z_index = 1
position = Vector2(347, 3)
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"]
