[gd_scene load_steps=14 format=2]

[ext_resource path="res://Tilemaps/Office_walls_floors_48x48.png" type="Texture" id=1]
[ext_resource path="res://client.gd" type="Script" id=2]
[ext_resource path="res://Tilemaps/Interactables.png" type="Texture" id=3]
[ext_resource path="res://Tilemaps/Office_interiors_shadowless_48x48.png" type="Texture" id=4]
[ext_resource path="res://Items/interactables.gd" type="Script" id=5]

[sub_resource type="ConvexPolygonShape2D" id=5]
points = PoolVector2Array( 48, 96, 0, 96, 0, 0, 48, 0 )

[sub_resource type="ConvexPolygonShape2D" id=3]
points = PoolVector2Array( 48, 96, 0, 96, 0, 0, 48, 0 )

[sub_resource type="ConvexPolygonShape2D" id=4]
points = PoolVector2Array( 32, 64, 16, 64, 16, 0, 32, 0 )

[sub_resource type="TileSet" id=2]
0/name = "Office_walls_floors_48x48.png 0"
0/texture = ExtResource( 1 )
0/tex_offset = Vector2( 0, 0 )
0/modulate = Color( 1, 1, 1, 1 )
0/region = Rect2( 96, 192, 48, 48 )
0/tile_mode = 0
0/occluder_offset = Vector2( 0, 0 )
0/navigation_offset = Vector2( 0, 0 )
0/shape_offset = Vector2( 0, 0 )
0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
0/shape_one_way = false
0/shape_one_way_margin = 0.0
0/shapes = [  ]
0/z_index = 0
1/name = "Wall Type 1"
1/texture = ExtResource( 1 )
1/tex_offset = Vector2( 0, 0 )
1/modulate = Color( 1, 1, 1, 1 )
1/region = Rect2( 96, 48, 48, 96 )
1/tile_mode = 0
1/occluder_offset = Vector2( 0, 0 )
1/navigation_offset = Vector2( 0, 0 )
1/shape_offset = Vector2( 0, 0 )
1/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
1/shape = SubResource( 5 )
1/shape_one_way = false
1/shape_one_way_margin = 1.0
1/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 5 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
} ]
1/z_index = 0
2/name = "Wall Type 2"
2/texture = ExtResource( 1 )
2/tex_offset = Vector2( 0, 0 )
2/modulate = Color( 1, 1, 1, 1 )
2/region = Rect2( 48, 48, 48, 96 )
2/tile_mode = 0
2/occluder_offset = Vector2( 0, 0 )
2/navigation_offset = Vector2( 0, 0 )
2/shape_offset = Vector2( 0, 0 )
2/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
2/shape = SubResource( 3 )
2/shape_one_way = false
2/shape_one_way_margin = 1.0
2/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 3 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
} ]
2/z_index = 0
3/name = "Wall Corner"
3/texture = ExtResource( 1 )
3/tex_offset = Vector2( 0, 0 )
3/modulate = Color( 1, 1, 1, 1 )
3/region = Rect2( 16, 48, 32, 16 )
3/tile_mode = 0
3/occluder_offset = Vector2( 0, 0 )
3/navigation_offset = Vector2( 0, 0 )
3/shape_offset = Vector2( 0, 0 )
3/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
3/shape_one_way = false
3/shape_one_way_margin = 0.0
3/shapes = [  ]
3/z_index = 0
4/name = "Wall Edge"
4/texture = ExtResource( 1 )
4/tex_offset = Vector2( 0, 0 )
4/modulate = Color( 1, 1, 1, 1 )
4/region = Rect2( 16, 80, 32, 64 )
4/tile_mode = 0
4/occluder_offset = Vector2( 0, 0 )
4/navigation_offset = Vector2( 0, 0 )
4/shape_offset = Vector2( 0, 0 )
4/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
4/shape = SubResource( 4 )
4/shape_one_way = false
4/shape_one_way_margin = 1.0
4/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 4 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
} ]
4/z_index = 0

[sub_resource type="TileSet" id=1]
0/name = "Interactables.png 0"
0/texture = ExtResource( 3 )
0/tex_offset = Vector2( 0, 0 )
0/modulate = Color( 1, 1, 1, 1 )
0/region = Rect2( 0, 0, 48, 16 )
0/tile_mode = 1
0/autotile/bitmask_mode = 0
0/autotile/bitmask_flags = [  ]
0/autotile/icon_coordinate = Vector2( 0, 0 )
0/autotile/tile_size = Vector2( 16, 16 )
0/autotile/spacing = 0
0/autotile/occluder_map = [  ]
0/autotile/navpoly_map = [  ]
0/autotile/priority_map = [  ]
0/autotile/z_index_map = [  ]
0/occluder_offset = Vector2( 0, 0 )
0/navigation_offset = Vector2( 0, 0 )
0/shape_offset = Vector2( 0, 0 )
0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
0/shape_one_way = false
0/shape_one_way_margin = 0.0
0/shapes = [  ]
0/z_index = 0

[sub_resource type="OccluderPolygon2D" id=8]
polygon = PoolVector2Array( 30.049, 8.3645, 66.097, 8.3645, 65.9032, 11.2716, 69.0041, 11.4654, 69.1979, 13.9849, 71.7174, 13.9849, 72.105, 41.1179, 69.1979, 40.924, 69.0041, 46.7382, 71.7174, 46.932, 71.9112, 44.2188, 77.9192, 44.4125, 78.113, 47.1259, 81.0201, 47.1259, 81.4077, 67.8632, 78.113, 68.2508, 78.113, 71.7393, 72.105, 71.5455, 71.9112, 76.1968, 69.3917, 76.7783, 69.3917, 80.2668, 56.9881, 80.2668, 56.9881, 82.5925, 60.2828, 82.7863, 60.2828, 85.8871, 62.8022, 86.081, 63.1899, 88.9881, 66.097, 89.1819, 66.097, 94.8023, 57.1819, 94.6085, 57.1819, 92.089, 54.4686, 92.089, 54.081, 89.1819, 51.1739, 89.1819, 50.7863, 86.4686, 44.7783, 86.2748, 44.5844, 89.1819, 42.2588, 89.3757, 42.2588, 92.6704, 39.3517, 92.089, 39.1578, 95.1899, 29.8551, 94.9961, 30.049, 89.3757, 32.9561, 88.9881, 32.7622, 86.4686, 36.0569, 86.081, 36.0569, 83.5615, 38.7702, 82.98, 38.7702, 80.2668, 26.948, 80.073, 26.7542, 77.5535, 24.4285, 77.3597, 23.8471, 71.7393, 18.4205, 71.1578, 18.0329, 68.0569, 15.1258, 68.0569, 14.932, 47.3196, 17.8391, 47.3196, 18.033, 44.4125, 23.8471, 44.0249, 24.041, 47.1258, 26.9481, 46.932, 26.9481, 41.3116, 24.041, 40.924, 24.2347, 13.9849, 26.9481, 14.1787, 26.9481, 11.2716, 30.049, 11.2716 )

[sub_resource type="ConvexPolygonShape2D" id=7]
points = PoolVector2Array( 80, 96, 16, 96, 16, 0, 80, 0 )

[sub_resource type="TileSet" id=6]
0/name = "Office_interiors_shadowless_48x48.png 0"
0/texture = ExtResource( 4 )
0/tex_offset = Vector2( 0, 0 )
0/modulate = Color( 1, 1, 1, 1 )
0/region = Rect2( 384, 352, 96, 96 )
0/tile_mode = 0
0/occluder_offset = Vector2( 0, 0 )
0/occluder = SubResource( 8 )
0/navigation_offset = Vector2( 0, 0 )
0/shape_offset = Vector2( 0, 0 )
0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
0/shape = SubResource( 7 )
0/shape_one_way = false
0/shape_one_way_margin = 1.0
0/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 7 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
} ]
0/z_index = 0

[node name="Node2D" type="Node2D"]

[node name="GUI" type="CanvasLayer" parent="."]
layer = 2

[node name="Control" type="Control" parent="GUI"]
margin_left = -3.0
margin_right = 1024.0
margin_bottom = 600.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Join" type="Button" parent="GUI/Control"]
margin_left = 448.0
margin_top = 302.3
margin_right = 536.0
margin_bottom = 322.3
text = "Join"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Create" type="Button" parent="GUI/Control"]
margin_left = 448.0
margin_top = 337.361
margin_right = 536.0
margin_bottom = 357.361
text = "Create"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="IP" type="TextEdit" parent="GUI/Control"]
margin_left = 448.0
margin_top = 207.487
margin_right = 540.0
margin_bottom = 228.487
text = "127.0.0.1"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Username" type="TextEdit" parent="GUI/Control"]
margin_left = 448.0
margin_top = 256.962
margin_right = 540.0
margin_bottom = 277.962
text = "Unknown"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="LIP" type="Label" parent="GUI/Control"]
margin_left = 448.039
margin_top = 186.754
margin_right = 505.039
margin_bottom = 200.754
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "Server IP"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Waiting" type="Label" parent="GUI/Control"]
visible = false
margin_left = 191.0
margin_top = 261.0
margin_right = 448.0
margin_bottom = 275.0
custom_colors/font_color = Color( 0.203922, 0.796078, 0.407843, 1 )
text = "Waiting for players to join ..."
align = 1

[node name="Chat" type="VBoxContainer" parent="GUI/Control"]
margin_left = 17.1571
margin_top = 13.7346
margin_right = 57.1572
margin_bottom = 53.7346
__meta__ = {
"_edit_use_anchors_": false
}

[node name="LUsername" type="Label" parent="GUI/Control"]
margin_left = 448.039
margin_top = 242.962
margin_right = 514.039
margin_bottom = 256.962
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "Username"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Hints" type="CanvasLayer" parent="."]

[node name="KeyPress" type="Control" parent="Hints"]
margin_top = 539.0
margin_right = 1026.0
margin_bottom = 600.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Interact" type="HBoxContainer" parent="Hints/KeyPress"]
visible = false
margin_left = 435.515
margin_top = 17.4899
margin_right = 551.515
margin_bottom = 31.4899
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Label" type="Label" parent="Hints/KeyPress/Interact"]
margin_right = 35.0
margin_bottom = 14.0
text = "Press"

[node name="Label2" type="Label" parent="Hints/KeyPress/Interact"]
margin_left = 39.0
margin_right = 46.0
margin_bottom = 14.0
custom_colors/font_color = Color( 0.0588235, 0.952941, 0.0509804, 1 )
custom_colors/font_outline_modulate = Color( 0, 0, 0, 1 )
text = "E"

[node name="Label3" type="Label" parent="Hints/KeyPress/Interact"]
margin_left = 50.0
margin_right = 116.0
margin_bottom = 14.0
text = "to interact"

[node name="Game" type="Node2D" parent="."]

[node name="Map" type="TileMap" parent="Game"]
tile_set = SubResource( 2 )
cell_size = Vector2( 48, 48 )
compatibility_mode = true
format = 1
tile_data = PoolIntArray( -262149, 536870914, 0, -262148, 536870914, 0, -262147, 536870914, 0, -262146, 536870914, 0, -262145, 536870914, 0, -327680, 536870914, 0, -327679, 536870914, 0, -327678, 536870914, 0, -327677, 536870914, 0, -327676, 536870914, 0, -131077, 536870912, 0, -131076, 536870912, 0, -131075, 536870912, 0, -131074, 536870912, 0, -131073, 536870912, 0, -196608, 536870912, 0, -196607, 536870912, 0, -196606, 536870912, 0, -196605, 536870912, 0, -196604, 536870912, 0, -65541, 536870912, 0, -65540, 536870912, 0, -65539, 536870912, 0, -65538, 536870912, 0, -65537, 536870912, 0, -131072, 536870912, 0, -131071, 536870912, 0, -131070, 536870912, 0, -131069, 536870912, 0, -131068, 536870912, 0, -5, 536870912, 0, -4, 536870912, 0, -3, 536870912, 0, -2, 536870912, 0, -1, 536870912, 0, -65536, 536870912, 0, -65535, 536870912, 0, -65534, 536870912, 0, -65533, 536870912, 0, -65532, 536870912, 0, 65531, 536870912, 0, 65532, 536870912, 0, 65533, 536870912, 0, 65534, 536870912, 0, 65535, 536870912, 0, 0, 536870912, 0, 1, 536870912, 0, 2, 536870912, 0, 3, 536870912, 0, 4, 536870912, 0, 131067, 536870912, 0, 131068, 536870912, 0, 131069, 536870912, 0, 131070, 536870912, 0, 131071, 536870912, 0, 65536, 536870912, 0, 65537, 536870912, 0, 65538, 536870912, 0, 65539, 536870912, 0, 65540, 536870912, 0, 196603, 536870912, 0, 196604, 536870912, 0, 196605, 536870912, 0, 196606, 536870912, 0, 196607, 536870912, 0, 131072, 536870912, 0, 131073, 536870912, 0, 131074, 536870912, 0, 131075, 536870912, 0, 131076, 536870912, 0, 262139, 536870912, 0, 262140, 536870912, 0, 262141, 536870912, 0, 262142, 536870912, 0, 262143, 536870912, 0, 196608, 536870912, 0, 196609, 536870912, 0, 196610, 536870912, 0, 196611, 536870912, 0, 196612, 536870912, 0 )

[node name="Interactables" type="TileMap" parent="Game"]
tile_set = SubResource( 1 )
cell_size = Vector2( 16, 16 )
format = 1
tile_data = PoolIntArray( 131080, 0, 0, 524289, 0, 0, 851978, 0, 0 )
script = ExtResource( 5 )

[node name="Timer" type="Timer" parent="Game/Interactables"]
autostart = true

[node name="Interior" type="TileMap" parent="Game"]
tile_set = SubResource( 6 )
cell_size = Vector2( 48, 48 )
format = 1
tile_data = PoolIntArray( -1, 536870912, 0 )

[node name="Connection" type="Node" parent="Game"]
script = ExtResource( 2 )

[node name="Spawn" type="Node2D" parent="Game"]
position = Vector2( -129.097, 30.837 )

[node name="Sprite" type="Sprite" parent="Game"]

[node name="Focus" type="Position2D" parent="Game"]
__meta__ = {
"_editor_description_": ""
}

[node name="Camera" type="Camera2D" parent="Game/Focus"]
current = true
zoom = Vector2( 0.4, 0.4 )
smoothing_enabled = true
smoothing_speed = 6.0
[connection signal="pressed" from="GUI/Control/Join" to="Game/Connection" method="_on_Join_pressed"]
[connection signal="pressed" from="GUI/Control/Create" to="Game/Connection" method="_on_Create_pressed"]
[connection signal="timeout" from="Game/Interactables/Timer" to="Game/Interactables" method="_on_Timer_timeout"]
