[gd_scene load_steps=17 format=4 uid="uid://b8xmgdpjtujau"]

[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_5hb4v"]
[ext_resource type="Resource" uid="uid://do1ly1s5etbt5" path="res://Resources/RogueliteMaps/Corridor_2x3.tres" id="2_gpg2k"]
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="3_mlhj8"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="4_5ndib"]
[ext_resource type="PackedScene" uid="uid://bjskkeb3ppcs8" path="res://Scenes/Actors/Turret360.tscn" id="5_5ndib"]
[ext_resource type="Script" uid="uid://8umfjejbkcsm" path="res://Scripts/Actors/RogueliteEnemySpawner.cs" id="5_mlhj8"]
[ext_resource type="Resource" uid="uid://cocl3qontm3be" path="res://Resources/Enemies/Base_Fairy.tres" id="6_5ndib"]
[ext_resource type="PackedScene" uid="uid://dcbcyp1qogcl0" path="res://Scenes/Props/BigTankHorizontal.tscn" id="6_80qhk"]
[ext_resource type="Resource" uid="uid://qbo6avc7x64b" path="res://Resources/Enemies/Fairy_Guard.tres" id="8_u8a2i"]
[ext_resource type="Resource" uid="uid://cqfyuurvqb8m6" path="res://Resources/Enemies/Base_Fairy_Special.tres" id="9_7yyco"]
[ext_resource type="PackedScene" uid="uid://b0k2grrc8xp1l" path="res://Scenes/Props/BigTank.tscn" id="11_2dika"]
[ext_resource type="Script" uid="uid://umyqgyxjiaig" path="res://Scripts/Actors/ChestMarker.cs" id="12_mjqnb"]
[ext_resource type="Texture2D" uid="uid://qeh4ai8h6sw5" path="res://Sprites/Chest.png" id="13_cxodv"]

[sub_resource type="NavigationPolygon" id="NavigationPolygon_rlq0q"]
vertices = PackedVector2Array(360, 166, 346, 166, 346, 152, 360, 152, 360, 118, 346, 118, 346, 104, 360, 104, 601, 118, 601, 152, 600, 136, 600, 102, 232, 388, 265, 376, 294, 376, 294, 422, 264, 406, 614, 234, 614, 454, 600, 438, 586, 378, 586, 294, 568, 424, 552, 438, 537, 424, 264, 440, 280, 454, 166, 454, 233, 440, 184, 436, 233, 406, 280, 120, 294, 68, 294, 134, 280, 134, 280, 86, 136, 436, 154, 454, 280, 422, 280, 68, 249, 86, 520, 116, 520, 70, 553, 102, 553, 136, 262, 330, 265, 342, 232, 358, 250, 330, 136, 406, 88, 420, 88, 374, 101, 345, 202, 148, 249, 120, 280, 166, 262, 166, 504, 420, 537, 390, 486, 454, 504, 390, 518, 378, 184, 390, 200, 388, 166, 58, 280, 58, 202, 86, 168, 70, 168, 86, 136, 70, 154, 58, 136, 86, 118, 86, 154, 118, 144, 118, 144, 116, 176, 116, 176, 118, 166, 118, 154, 148, 166, 148, 474, 166, 408, 166, 408, 134, 376, 134, 376, 150, 360, 150, 360, 132, 408, 132, 360, 70, 346, 70, 346, 58, 361, 58, 361, 72, 360, 86, 408, 86, 392, 72, 392, 58, 474, 58, 474, 10, 486, 10, 486, 58, 614, 58, 614, 118, 614, 152, 614, 166, 486, 166, 584, 294, 584, 278, 486, 234, 553, 278, 553, 294, 518, 294, 518, 326, 489, 326, 490, 324, 489, 342, 488, 342, 488, 324, 490, 294, 440, 294, 440, 278, 474, 234, 409, 312, 422, 312, 422, 324, 424, 324, 424, 342, 422, 342, 490, 372, 490, 360, 518, 360, 600, 454, 568, 390, 440, 390, 422, 372, 552, 454, 440, 420, 474, 454, 486, 470, 474, 470, 392, 454, 408, 440, 392, 440, 408, 406, 377, 406, 377, 438, 360, 438, 375, 409, 360, 409, 375, 362, 346, 362, 346, 262, 280, 330, 280, 342, 153, 390, 153, 406, 137, 376, 56, 356, 57, 374, 57, 390, 56, 390, 40, 372, 40, 356, 166, 470, 154, 470, 72, 454, 72, 422, 56, 420, 41, 422, 41, 454, 26, 454, 26, 372, 56, 345, 101, 330, 104, 330, 104, 340, 135, 340, 135, 344, 137, 344, 168, 376, 168, 344, 181, 344, 200, 358, 181, 330, 250, 262, 26, 262, 26, 234, 250, 234, 57, 134, 57, 150, 26, 150, 40, 100, 26, 68, 57, 68, 57, 70, 40, 70, 72, 100, 88, 134, 72, 88, 88, 88, 118, 148, 88, 58, 154, 10, 166, 10, 88, 166, 250, 166, 262, 234, 262, 262, 409, 278, 488, 116, 488, 70)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3), PackedInt32Array(4, 5, 6, 7), PackedInt32Array(8, 9, 10, 11), PackedInt32Array(12, 13, 14, 15, 16), PackedInt32Array(17, 18, 19, 20, 21), PackedInt32Array(22, 19, 23, 24), PackedInt32Array(25, 26, 27, 28), PackedInt32Array(28, 27, 29, 30), PackedInt32Array(31, 32, 33, 34), PackedInt32Array(32, 31, 35), PackedInt32Array(36, 29, 27, 37), PackedInt32Array(38, 26, 25, 16), PackedInt32Array(39, 32, 35, 40), PackedInt32Array(41, 42, 43, 44), PackedInt32Array(45, 46, 13, 12, 47, 48), PackedInt32Array(49, 36, 50, 51, 52), PackedInt32Array(53, 54, 34, 55, 56), PackedInt32Array(57, 58, 24, 59), PackedInt32Array(58, 57, 60, 61), PackedInt32Array(30, 29, 62, 63, 12), PackedInt32Array(64, 65, 39, 40, 66, 67), PackedInt32Array(54, 31, 34), PackedInt32Array(54, 53, 66, 40), PackedInt32Array(66, 68, 67), PackedInt32Array(64, 67, 69, 70), PackedInt32Array(69, 71, 72), PackedInt32Array(73, 74, 75, 76), PackedInt32Array(76, 77, 78), PackedInt32Array(73, 76, 78), PackedInt32Array(79, 73, 78, 80), PackedInt32Array(81, 82, 83), PackedInt32Array(84, 85, 86, 87), PackedInt32Array(84, 87, 88, 83), PackedInt32Array(89, 90, 91, 92), PackedInt32Array(89, 92, 93, 94), PackedInt32Array(95, 94, 93, 96), PackedInt32Array(96, 97, 98, 95), PackedInt32Array(98, 99, 100, 101), PackedInt32Array(102, 103, 8, 11), PackedInt32Array(9, 104, 105, 106), PackedInt32Array(21, 107, 108, 17), PackedInt32Array(109, 17, 108, 110), PackedInt32Array(110, 111, 112, 109), PackedInt32Array(112, 113, 114, 115), PackedInt32Array(114, 116, 117, 118), PackedInt32Array(114, 118, 115), PackedInt32Array(112, 115, 119), PackedInt32Array(109, 112, 119), PackedInt32Array(109, 119, 120, 121, 122), PackedInt32Array(123, 124, 125), PackedInt32Array(125, 126, 127, 128), PackedInt32Array(129, 130, 131, 61, 60), PackedInt32Array(18, 132, 19), PackedInt32Array(20, 19, 22, 133), PackedInt32Array(61, 20, 133, 58), PackedInt32Array(129, 60, 134, 135), PackedInt32Array(23, 136, 59, 24), PackedInt32Array(137, 57, 59, 138), PackedInt32Array(59, 139, 140, 138), PackedInt32Array(137, 138, 141, 142), PackedInt32Array(141, 143, 142), PackedInt32Array(134, 137, 142, 144, 135), PackedInt32Array(145, 146, 147, 148), PackedInt32Array(147, 149, 148), PackedInt32Array(145, 148, 150), PackedInt32Array(125, 128, 150, 151, 152, 123), PackedInt32Array(45, 153, 154, 46), PackedInt32Array(155, 156, 49, 52, 157), PackedInt32Array(158, 159, 160, 161, 162, 163), PackedInt32Array(27, 164, 165, 37), PackedInt32Array(50, 36, 37, 166, 167), PackedInt32Array(168, 50, 167, 169), PackedInt32Array(169, 170, 171, 172, 162), PackedInt32Array(168, 169, 162, 161), PackedInt32Array(158, 173, 52, 51, 159), PackedInt32Array(52, 174, 175, 176), PackedInt32Array(176, 177, 178), PackedInt32Array(178, 179, 157), PackedInt32Array(62, 180, 181, 182, 183, 63), PackedInt32Array(182, 184, 48, 47, 183), PackedInt32Array(185, 186, 187, 188), PackedInt32Array(189, 190, 191, 192), PackedInt32Array(193, 194, 195, 196), PackedInt32Array(191, 193, 196, 192), PackedInt32Array(189, 192, 197, 198), PackedInt32Array(197, 199, 200, 201, 198), PackedInt32Array(200, 202, 70, 69), PackedInt32Array(70, 203, 204, 64), PackedInt32Array(200, 69, 72), PackedInt32Array(200, 72, 201), PackedInt32Array(205, 198, 201), PackedInt32Array(206, 205, 201, 79), PackedInt32Array(206, 79, 80), PackedInt32Array(206, 80, 53, 56), PackedInt32Array(206, 56, 207, 188), PackedInt32Array(185, 188, 207, 208), PackedInt32Array(135, 144, 145, 150, 128), PackedInt32Array(209, 123, 152), PackedInt32Array(10, 9, 106, 44), PackedInt32Array(83, 88, 210, 41, 44, 106, 81), PackedInt32Array(176, 178, 157, 52), PackedInt32Array(155, 157, 180, 62), PackedInt32Array(102, 11, 43, 42), PackedInt32Array(101, 102, 42, 211), PackedInt32Array(98, 101, 211, 210, 88, 95), PackedInt32Array(122, 81, 106, 109), PackedInt32Array(207, 122, 121, 209, 152), PackedInt32Array(207, 152, 208), PackedInt32Array(185, 208, 45, 48), PackedInt32Array(16, 30, 12), PackedInt32Array(16, 15, 38)])
outlines = Array[PackedVector2Array]([PackedVector2Array(17, 36, 14, 12, 47, 15, 49, 34)])
parsed_collision_mask = 353
source_geometry_mode = 1

[sub_resource type="RectangleShape2D" id="RectangleShape2D_g0xrw"]
size = Vector2(590, 406)

[sub_resource type="AtlasTexture" id="AtlasTexture_cbwob"]
atlas = ExtResource("13_cxodv")
region = Rect2(0, 0, 16, 16)

[node name="Map" type="Node2D" node_paths=PackedStringArray("RoomClearActivation")]
process_mode = 1
script = ExtResource("1_5hb4v")
RoomResource = ExtResource("2_gpg2k")
RoomClearActivation = []

[node name="Tilemaps" type="Node2D" parent="." groups=["navigation_polygon_source_geometry_group"]]

[node name="Liquids" type="TileMapLayer" parent="Tilemaps"]
tile_map_data = PackedByteArray("AAAhABQAAAAJAAcAAAAhABUAAAAEAAMAAAAiABQAAAAJAAcAAAAiABUAAAAEAAMAAAAjABQAAAAJAAcAAAAjABUAAAAEAAMAAAAhABYAAAAEAAMAAAAiABYAAAAEAAMAAAAjABYAAAAEAAMAAAA=")
tile_set = ExtResource("3_mlhj8")

[node name="Floor" type="TileMapLayer" parent="Tilemaps" node_paths=PackedStringArray("_solidLayers") groups=["Solid"]]
tile_map_data = PackedByteArray("[encoded data, 19060 characters]")
tile_set = ExtResource("3_mlhj8")
navigation_enabled = false
script = ExtResource("4_5ndib")
_solidLayers = [NodePath("../Solid"), NodePath("../Props")]
metadata/_edit_lock_ = true

[node name="Solid" type="TileMapLayer" parent="Tilemaps" groups=["Solid"]]
tile_map_data = PackedByteArray("[encoded data, 6116 characters]")
tile_set = ExtResource("3_mlhj8")
navigation_enabled = false
metadata/_edit_lock_ = true

[node name="Props" type="TileMapLayer" parent="Tilemaps" groups=["Solid"]]
tile_map_data = PackedByteArray("AAAcAAwAAAAKAA0AAAAcAA0AAAAKAA0AAAAfAAwAAAAJAA0AAAAfAA0AAAAJAA0AAAAVAAsAAAAHAAsAAAAWAAsAAAAHAAsAAAAXAAsAAAAHAAsAAAAYAAsAAAAHAAsAAAAZAAsAAAAHAAsAAAAaAAsAAAAHAAsAAAAbAAsAAAAHAAsAAAAcAAsAAAAHAAsAAAAfAAsAAAAHAAsAAAAgAAsAAAAHAAsAAAAhAAsAAAAHAAsAAAAiAAsAAAAHAAsAAAAjAAsAAAAHAAsAAAAkAAsAAAAHAAsAAAAlAAsAAAAHAAsAAAAmAAsAAAAHAAsAAAABABQAAQAAAAAAEAACABQAAQAAAAAAEAABABUAAQAAAAAAEAACABUAAQAAAAAAEAADABQAAQAAAAAAEAABABYAAQAAAAAAEAAjABwAAQAAAAAAEAAkABwAAQAAAAAAEAAVABkAAQAAAAAAEAAVABoAAQAAAAAAEAAVABsAAQAAAAAADwAVABwAAQAAAAAADwAXAAYAAQAAAAAADwAYAAYAAQAAAAAADwAYAAcAAQAAAAAADwAXAAcAAQAAAAAADwASAAkAAQAAAAAADgASAAoAAQAAAAAADgACAAoAAQAAAAAADgADAAoAAQAAAAAADgABAAoAAQAAAAAADwASAAMAAQAAAAAADwABAAMAAQAAAAAAEAACAAMAAQAAAAAAEAADAAMAAQAAAAAAEAAEAAMAAQAAAAAAEAAIAAYAAAAGAAsAAAAJAAYAAAAHAAsAAAAKAAYAAAAHAAsAAAALAAYAAAAIAAsAAAAIAAcAAAAGAAwAAAAIAAgAAAAHAAsAAAALAA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AOABMAAAAKAA0AAAAOAAwAAAAKAAwAAAAOAA0AAAAKAA0AAAAcAAEAAAAKAAwAAAAcAAIAAAAKAA0AAAAIAAEAAAAKAAwAAAAIAAIAAAAKAA0AAAARAAwAAAAJAAwAAAARAA0AAAAJAA0AAAALAAEAAAAJAAwAAAALAAIAAAAJAA0AAAAfAAEAAAAJAAwAAAAfAAIAAAAJAA0AAAAAABcAAAAKAA4AAAAAABgAAAAKAA8AAAAAAA0AAAAKAA4AAAAAAA4AAAAKAA8AAAAAAAMAAAAKAA4AAAAAAAQAAAAKAA8AAAAnAA0AAAAKAA4AAAAnAA4AAAAKAA8AAAAnAAMAAAAKAA4AAAAnAAQAAAAKAA8AAAAnABcAAAAKAA4AAAAnABgAAAAKAA8AAAAGABAAAQAAAAAADQAHABAAAQAAAAAADQAMABAAAQAAAAAADgAjAA4AAQAAAAAADgAkAA4AAQAAAAAADgAmABUAAQAAAAAADgAmABQAAQAAAAAADgAVAAMAAQAAAAAAEAAWAAMAAQAAAAAAEAA=")
tile_set = ExtResource("3_mlhj8")
navigation_enabled = false
metadata/_edit_lock_ = true

[node name="Actors" type="Node2D" parent="Tilemaps"]
metadata/_edit_lock_ = true

[node name="Turret360" parent="Tilemaps/Actors" instance=ExtResource("5_5ndib")]
position = Vector2(162, 121)

[node name="BigTankHorizontal" parent="Tilemaps/Actors" instance=ExtResource("6_80qhk")]
position = Vector2(78, 322)

[node name="BigTankHorizontal2" parent="Tilemaps/Actors" instance=ExtResource("6_80qhk")]
position = Vector2(158, 321)

[node name="BigTankHorizontal3" parent="Tilemaps/Actors" instance=ExtResource("6_80qhk")]
position = Vector2(352, 386)

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

[node name="RogueliteEnemySpawner6" type="Marker2D" parent="EnemySpawners"]
position = Vector2(513, 301)
script = ExtResource("5_mlhj8")
Enemy = ExtResource("6_5ndib")

[node name="RogueliteEnemySpawner7" type="Marker2D" parent="EnemySpawners"]
position = Vector2(426.748, 101.567)
script = ExtResource("5_mlhj8")
Enemy = ExtResource("6_5ndib")

[node name="RogueliteEnemySpawner8" type="Marker2D" parent="EnemySpawners"]
position = Vector2(130.125, 384.707)
script = ExtResource("5_mlhj8")
Enemy = ExtResource("6_5ndib")

[node name="RogueliteEnemySpawner15" type="Marker2D" parent="EnemySpawners"]
position = Vector2(274, 450)
script = ExtResource("5_mlhj8")
Enemy = ExtResource("8_u8a2i")

[node name="RogueliteEnemySpawner9" type="Marker2D" parent="EnemySpawners"]
position = Vector2(236.568, 98.3739)
script = ExtResource("5_mlhj8")
Enemy = ExtResource("6_5ndib")

[node name="RogueliteEnemySpawner10" type="Marker2D" parent="EnemySpawners"]
position = Vector2(149.639, 245.621)
script = ExtResource("5_mlhj8")
Enemy = ExtResource("6_5ndib")

[node name="RogueliteEnemySpawner11" type="Marker2D" parent="EnemySpawners"]
position = Vector2(373, 340)
script = ExtResource("5_mlhj8")
Enemy = ExtResource("9_7yyco")

[node name="RogueliteEnemySpawner12" type="Marker2D" parent="EnemySpawners"]
position = Vector2(110.255, 157.628)
script = ExtResource("5_mlhj8")
Enemy = ExtResource("6_5ndib")

[node name="RogueliteEnemySpawner13" type="Marker2D" parent="EnemySpawners"]
position = Vector2(417, 245)
script = ExtResource("5_mlhj8")
Enemy = ExtResource("8_u8a2i")

[node name="RogueliteEnemySpawner14" type="Marker2D" parent="EnemySpawners"]
position = Vector2(562.641, 63.2475)
script = ExtResource("5_mlhj8")
Enemy = ExtResource("8_u8a2i")

[node name="NavigationRegion2D" type="NavigationRegion2D" parent="."]
visible = false
navigation_polygon = SubResource("NavigationPolygon_rlq0q")
use_edge_connections = false

[node name="PlayerEnterDetector" type="Area2D" parent="."]
visible = false
collision_layer = 0
collision_mask = 2

[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerEnterDetector"]
position = Vector2(321, 255)
shape = SubResource("RectangleShape2D_g0xrw")

[node name="BigTank" parent="." instance=ExtResource("11_2dika")]
position = Vector2(354, 343)

[node name="BigTank2" parent="." instance=ExtResource("11_2dika")]
position = Vector2(272, 44)

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

[node name="Chest" type="Marker2D" parent="Features"]
position = Vector2(248, 56)
script = ExtResource("12_mjqnb")
MarkerTexture = SubResource("AtlasTexture_cbwob")
SpawnChance = 10.0

[node name="Chest2" type="Marker2D" parent="Features"]
position = Vector2(104, 327)
script = ExtResource("12_mjqnb")
MarkerTexture = SubResource("AtlasTexture_cbwob")
SpawnChance = 10.0

[node name="Chest3" type="Marker2D" parent="Features"]
position = Vector2(344, 71)
script = ExtResource("12_mjqnb")
MarkerTexture = SubResource("AtlasTexture_cbwob")
SpawnChance = 10.0

[node name="Chest4" type="Marker2D" parent="Features"]
position = Vector2(344, 151)
script = ExtResource("12_mjqnb")
MarkerTexture = SubResource("AtlasTexture_cbwob")
SpawnChance = 10.0

[node name="Chest5" type="Marker2D" parent="Features"]
position = Vector2(296, 424)
script = ExtResource("12_mjqnb")
MarkerTexture = SubResource("AtlasTexture_cbwob")
SpawnChance = 10.0

[node name="Chest6" type="Marker2D" parent="Features"]
position = Vector2(24, 456)
script = ExtResource("12_mjqnb")
MarkerTexture = SubResource("AtlasTexture_cbwob")
SpawnChance = 10.0

[node name="Chest7" type="Marker2D" parent="Features"]
position = Vector2(72, 168)
script = ExtResource("12_mjqnb")
MarkerTexture = SubResource("AtlasTexture_cbwob")
SpawnChance = 10.0

[node name="Chest8" type="Marker2D" parent="Features"]
position = Vector2(361, 437)
script = ExtResource("12_mjqnb")
MarkerTexture = SubResource("AtlasTexture_cbwob")
SpawnChance = 10.0

[connection signal="area_entered" from="PlayerEnterDetector" to="." method="OnRoomEntered"]
