[gd_scene load_steps=15 format=4 uid="uid://o010o1aq0jkp"]

[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_cr0e6"]
[ext_resource type="Resource" uid="uid://dyant7sb34jt1" path="res://Resources/RogueliteMaps/Factory_Vertical_Corridor.tres" id="2_cr0e6"]
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="3_xdgau"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="4_2w7cp"]
[ext_resource type="Script" uid="uid://8umfjejbkcsm" path="res://Scripts/Actors/RogueliteEnemySpawner.cs" id="5_7gtxd"]
[ext_resource type="PackedScene" uid="uid://dcbcyp1qogcl0" path="res://Scenes/Props/BigTankHorizontal.tscn" id="5_xdgau"]
[ext_resource type="PackedScene" uid="uid://b0k2grrc8xp1l" path="res://Scenes/Props/BigTank.tscn" id="6_2w7cp"]
[ext_resource type="Resource" uid="uid://cocl3qontm3be" path="res://Resources/Enemies/Base_Fairy.tres" id="6_mrmg4"]
[ext_resource type="Script" uid="uid://umyqgyxjiaig" path="res://Scripts/Actors/ChestMarker.cs" id="7_fgi8q"]
[ext_resource type="Texture2D" uid="uid://qeh4ai8h6sw5" path="res://Sprites/Chest.png" id="8_5wqsi"]
[ext_resource type="Resource" uid="uid://qbo6avc7x64b" path="res://Resources/Enemies/Fairy_Guard.tres" id="9_2w7cp"]

[sub_resource type="NavigationPolygon" id="NavigationPolygon_rlq0q"]
vertices = PackedVector2Array(56, 436, 56, 438, 40, 438, 26, 436, 26, 454, 40, 454, 218, 170, 265, 182, 265, 198, 264, 198, 72, 196, 136, 180, 166, 58, 262, 58, 262, 77, 218, 70, 294, 77, 294, 86, 248, 86, 248, 132, 294, 132, 294, 182, 264, 214, 182, 214, 182, 282, 248, 282, 248, 292, 182, 310, 138, 310, 136, 294, 294, 292, 294, 310, 278, 310, 278, 378, 280, 378, 280, 436, 264, 404, 294, 436, 294, 454, 280, 438, 280, 454, 250, 438, 250, 404, 264, 378, 266, 378, 266, 310, 136, 406, 182, 394, 200, 394, 200, 420, 166, 454, 154, 454, 136, 452, 214, 420, 214, 454, 166, 470, 154, 470, 106, 454, 106, 452, 106, 406, 106, 394, 138, 394, 136, 310, 105, 294, 105, 310, 54, 310, 88, 292, 54, 378, 70, 378, 70, 422, 56, 406, 56, 422, 26, 406, 42, 378, 26, 378, 42, 310, 26, 310, 26, 292, 88, 282, 138, 282, 138, 214, 40, 214, 40, 198, 26, 198, 26, 136, 40, 196, 40, 102, 26, 102, 26, 84, 40, 84, 40, 78, 86, 78, 86, 154, 40, 136, 72, 166, 88, 154, 88, 164, 104, 164, 104, 180, 136, 171, 169, 171, 169, 170, 218, 120, 232, 120, 232, 86, 218, 86, 138, 70, 138, 58, 154, 58, 154, 10, 166, 10, 40, 166)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3), PackedInt32Array(4, 3, 2, 5), PackedInt32Array(6, 7, 8, 9, 10, 11), PackedInt32Array(12, 13, 14, 15), PackedInt32Array(14, 16, 17, 18), PackedInt32Array(19, 20, 21, 7, 6), PackedInt32Array(9, 22, 23, 10), PackedInt32Array(24, 25, 26, 27, 28, 29), PackedInt32Array(26, 30, 31, 32), PackedInt32Array(33, 34, 35, 36), PackedInt32Array(35, 37, 38, 39), PackedInt32Array(38, 40, 39), PackedInt32Array(35, 39, 41, 42, 36), PackedInt32Array(36, 43, 44), PackedInt32Array(33, 36, 44, 32), PackedInt32Array(32, 44, 45), PackedInt32Array(26, 32, 45), PackedInt32Array(26, 45, 27), PackedInt32Array(46, 47, 48, 49, 50, 51, 52), PackedInt32Array(49, 53, 54, 50), PackedInt32Array(50, 55, 56, 51), PackedInt32Array(51, 57, 58, 52), PackedInt32Array(46, 59, 60, 61), PackedInt32Array(28, 62, 29), PackedInt32Array(63, 64, 65, 66), PackedInt32Array(67, 68, 69, 70), PackedInt32Array(69, 71, 70), PackedInt32Array(67, 70, 72, 73), PackedInt32Array(72, 74, 73), PackedInt32Array(65, 67, 73, 75), PackedInt32Array(75, 76, 77, 66), PackedInt32Array(65, 75, 66), PackedInt32Array(63, 66, 78, 79, 29), PackedInt32Array(80, 81, 82, 10), PackedInt32Array(82, 83, 84, 85), PackedInt32Array(86, 87, 88, 89), PackedInt32Array(89, 90, 91, 92), PackedInt32Array(86, 89, 92), PackedInt32Array(93, 86, 92), PackedInt32Array(94, 92, 95, 96, 10), PackedInt32Array(96, 97, 98, 10), PackedInt32Array(11, 99, 100), PackedInt32Array(100, 101, 6), PackedInt32Array(6, 102, 103, 19), PackedInt32Array(104, 105, 15, 14), PackedInt32Array(15, 106, 107, 108), PackedInt32Array(108, 109, 110, 12), PackedInt32Array(15, 108, 12), PackedInt32Array(104, 14, 18), PackedInt32Array(104, 18, 19, 103), PackedInt32Array(47, 46, 61, 27), PackedInt32Array(27, 61, 28), PackedInt32Array(24, 29, 79, 23), PackedInt32Array(23, 79, 80), PackedInt32Array(10, 23, 80), PackedInt32Array(85, 10, 82), PackedInt32Array(111, 85, 84), PackedInt32Array(111, 84, 93, 92, 94), PackedInt32Array(10, 98, 11), PackedInt32Array(6, 11, 100)])
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(272, 406)

[sub_resource type="AtlasTexture" id="AtlasTexture_mr604"]
atlas = ExtResource("8_5wqsi")
region = Rect2(0, 0, 16, 16)

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

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

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

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

[node name="Props" type="TileMapLayer" parent="Tilemaps" groups=["Solid"]]
tile_map_data = PackedByteArray("AAARABEAAAAGAAAAAAASABEAAAAHAAAAAAABABEAAAAGAAAAAAACABEAAAAHAAAAAAAJABkAAAANAAgAAAAJABoAAAANAAkAAAAKABkAAAAOAAgAAAAKABoAAAAOAAkAAAAMABYAAAAJAAwAAAAMABcAAAAJAA0AAAAMAA8AAAAJAAwAAAAMABAAAAAJAA0AAAASAB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led = false
metadata/_edit_lock_ = true

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

[node name="BigTankHorizontal" parent="Tilemaps/Actors" instance=ExtResource("5_xdgau")]
position = Vector2(80, 55)

[node name="BigTankHorizontal2" parent="Tilemaps/Actors" instance=ExtResource("5_xdgau")]
position = Vector2(146, 148)

[node name="BigTank" parent="Tilemaps/Actors" instance=ExtResource("6_2w7cp")]
position = Vector2(288, 50)

[node name="BigTank2" parent="Tilemaps/Actors" instance=ExtResource("6_2w7cp")]
position = Vector2(49, 51)

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

[node name="RogueliteEnemySpawner6" type="Marker2D" parent="EnemySpawners"]
position = Vector2(165, 301)
script = ExtResource("5_7gtxd")
Enemy = ExtResource("6_mrmg4")

[node name="RogueliteEnemySpawner7" type="Marker2D" parent="EnemySpawners"]
position = Vector2(233.374, 179.149)
script = ExtResource("5_7gtxd")
Enemy = ExtResource("6_mrmg4")

[node name="RogueliteEnemySpawner8" type="Marker2D" parent="EnemySpawners"]
position = Vector2(44.4718, 144.374)
script = ExtResource("5_7gtxd")
Enemy = ExtResource("9_2w7cp")

[node name="RogueliteEnemySpawner9" type="Marker2D" parent="EnemySpawners"]
position = Vector2(272.442, 388.229)
script = ExtResource("5_7gtxd")
Enemy = ExtResource("6_mrmg4")

[node name="RogueliteEnemySpawner10" type="Marker2D" parent="EnemySpawners"]
position = Vector2(45.7598, 358.177)
script = ExtResource("5_7gtxd")
Enemy = ExtResource("6_mrmg4")

[node name="RogueliteEnemySpawner11" type="Marker2D" parent="EnemySpawners"]
position = Vector2(241.482, 101.284)
script = ExtResource("5_7gtxd")
Enemy = ExtResource("9_2w7cp")

[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(162, 255)
shape = SubResource("RectangleShape2D_g0xrw")

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

[node name="Chest" type="Marker2D" parent="Features"]
position = Vector2(295, 455)
script = ExtResource("7_fgi8q")
MarkerTexture = SubResource("AtlasTexture_mr604")
SpawnChance = 10.0

[node name="Chest2" type="Marker2D" parent="Features"]
position = Vector2(248, 455)
script = ExtResource("7_fgi8q")
MarkerTexture = SubResource("AtlasTexture_mr604")
SpawnChance = 10.0

[node name="Chest3" type="Marker2D" parent="Features"]
position = Vector2(25, 455)
script = ExtResource("7_fgi8q")
MarkerTexture = SubResource("AtlasTexture_mr604")
SpawnChance = 10.0

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