[gd_scene load_steps=19 format=4 uid="uid://dngwjgs5bhnx7"]

[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_xsqjb"]
[ext_resource type="Resource" uid="uid://bv0mr43vcfrdh" path="res://Resources/RogueliteMaps/BigMap.tres" id="2_xsqjb"]
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="4_tyndx"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="5_lrgk6"]
[ext_resource type="PackedScene" uid="uid://dcbcyp1qogcl0" path="res://Scenes/Props/BigTankHorizontal.tscn" id="6_cgxuy"]
[ext_resource type="Script" uid="uid://8umfjejbkcsm" path="res://Scripts/Actors/RogueliteEnemySpawner.cs" id="7_cgxuy"]
[ext_resource type="PackedScene" uid="uid://c27co22bjym3c" path="res://Scenes/Actors/Camera.tscn" id="7_lrgk6"]
[ext_resource type="Script" uid="uid://umyqgyxjiaig" path="res://Scripts/Actors/ChestMarker.cs" id="8_5i0e8"]
[ext_resource type="Resource" uid="uid://qbo6avc7x64b" path="res://Resources/Enemies/Fairy_Guard.tres" id="8_lrgk6"]
[ext_resource type="PackedScene" uid="uid://b0k2grrc8xp1l" path="res://Scenes/Props/BigTank.tscn" id="8_tyndx"]
[ext_resource type="Texture2D" uid="uid://qeh4ai8h6sw5" path="res://Sprites/Chest.png" id="9_8vrl3"]
[ext_resource type="Resource" uid="uid://cqfyuurvqb8m6" path="res://Resources/Enemies/Base_Fairy_Special.tres" id="9_tyndx"]
[ext_resource type="Script" uid="uid://g6oraxgd87ij" path="res://Scripts/Actors/TeleporterMarker.cs" id="10_1cc4q"]
[ext_resource type="Texture2D" uid="uid://d3e762pxublbt" path="res://Sprites/teleporter.png" id="11_mblqw"]

[sub_resource type="AtlasTexture" id="AtlasTexture_1cc4q"]
atlas = ExtResource("9_8vrl3")
region = Rect2(0, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_h26ay"]
atlas = ExtResource("11_mblqw")
region = Rect2(0, 0, 16, 16)

[sub_resource type="NavigationPolygon" id="NavigationPolygon_lrgk6"]
vertices = PackedVector2Array(358, 230, 248, 212, 326, 211, 378, 211, 426, 230, 314, 211, 262, 211, 520, 244, 534, 234, 614, 234, 614, 262, 550, 262, 520, 198, 534, 134, 457, 182, 457, 232, 390, 138, 442, 138, 248, 166, 262, 114, 166, 58, 179, 58, 179, 77, 168, 102, 249, 77, 249, 88, 202, 118, 168, 118, 294, 88, 294, 90, 378, 114, 330, 90, 330, 88, 360, 88, 374, 106, 360, 84, 374, 84, 442, 58, 474, 58, 518, 122, 504, 182, 474, 10, 486, 10, 486, 58, 518, 58, 570, 122, 570, 90, 614, 90, 585, 118, 614, 118, 585, 134, 504, 198, 326, 114, 314, 114, 472, 232, 472, 244, 550, 294, 486, 294, 486, 310, 474, 310, 474, 294, 426, 294, 358, 262, 313, 262, 313, 278, 248, 278, 246, 265, 248, 294, 246, 294, 216, 212, 200, 265, 202, 234, 168, 260, 200, 294, 166, 294, 154, 282, 154, 260, 166, 310, 154, 310, 154, 294, 56, 262, 26, 262, 26, 186, 42, 186, 42, 102, 26, 102, 26, 58, 57, 58, 57, 88, 86, 88, 86, 102, 54, 102, 54, 186, 86, 186, 86, 234, 88, 234, 88, 260, 56, 294, 102, 260, 102, 282, 168, 244, 184, 244, 184, 234, 138, 102, 138, 58, 154, 58, 154, 10, 166, 10, 216, 166, 390, 106)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3, 4), PackedInt32Array(5, 2, 1), PackedInt32Array(6, 5, 1), PackedInt32Array(7, 8, 9, 10, 11), PackedInt32Array(8, 7, 12, 13), PackedInt32Array(14, 15, 4, 3, 16, 17), PackedInt32Array(6, 1, 18, 19), PackedInt32Array(20, 21, 22, 23), PackedInt32Array(23, 22, 24, 25, 26, 27), PackedInt32Array(25, 28, 29, 19, 26), PackedInt32Array(30, 31, 32, 33, 34), PackedInt32Array(33, 35, 36, 34), PackedInt32Array(14, 17, 37, 38, 39, 40), PackedInt32Array(38, 41, 42, 43), PackedInt32Array(43, 44, 39), PackedInt32Array(45, 46, 47, 48), PackedInt32Array(47, 49, 48), PackedInt32Array(45, 48, 50, 13), PackedInt32Array(39, 45, 13), PackedInt32Array(13, 12, 51, 40, 39), PackedInt32Array(52, 2, 5, 53), PackedInt32Array(15, 54, 55), PackedInt32Array(7, 11, 56, 57, 55), PackedInt32Array(57, 58, 59, 60), PackedInt32Array(55, 57, 60), PackedInt32Array(55, 60, 61, 4, 15), PackedInt32Array(0, 62, 63, 1), PackedInt32Array(1, 63, 64, 65, 66), PackedInt32Array(65, 67, 68, 66), PackedInt32Array(69, 1, 66, 70, 71), PackedInt32Array(72, 70, 73, 74, 75, 76), PackedInt32Array(74, 77, 78, 79), PackedInt32Array(80, 81, 82, 83), PackedInt32Array(84, 85, 86, 87, 88), PackedInt32Array(88, 89, 90, 91), PackedInt32Array(84, 88, 91), PackedInt32Array(83, 84, 91, 92), PackedInt32Array(80, 83, 92), PackedInt32Array(80, 92, 93, 94), PackedInt32Array(80, 94, 95, 96, 97), PackedInt32Array(96, 98, 99, 97), PackedInt32Array(72, 100, 101, 70), PackedInt32Array(101, 102, 71, 70), PackedInt32Array(23, 103, 104, 105), PackedInt32Array(105, 106, 107, 20), PackedInt32Array(23, 105, 20), PackedInt32Array(79, 97, 99, 75), PackedInt32Array(74, 79, 75), PackedInt32Array(69, 71, 26, 108), PackedInt32Array(19, 18, 108, 26), PackedInt32Array(53, 19, 29, 31), PackedInt32Array(52, 53, 31), PackedInt32Array(30, 52, 31), PackedInt32Array(30, 34, 109), PackedInt32Array(30, 109, 16, 3), PackedInt32Array(39, 38, 43)])
outlines = Array[PackedVector2Array]([PackedVector2Array(32, 42, 30, 31, 62, 27, 61, 38)])
parsed_collision_mask = 353
source_geometry_mode = 1

[sub_resource type="RectangleShape2D" id="RectangleShape2D_cgxuy"]
size = Vector2(588, 243)

[node name="Map" type="Node2D" node_paths=PackedStringArray("RoomClearActivation")]
process_mode = 1
script = ExtResource("1_xsqjb")
RoomResource = ExtResource("2_xsqjb")
RoomClearActivation = []
metadata/test_scene = "res://Scenes/Maps/Roguelike.tscn"

[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, 12788 characters]")
tile_set = ExtResource("4_tyndx")
navigation_enabled = false
script = ExtResource("5_lrgk6")
_solidLayers = [NodePath("../Solid"), NodePath("../Props")]
metadata/_edit_lock_ = true

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

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

[node name="BigTankHorizontal" parent="Tilemaps/Actors" instance=ExtResource("6_cgxuy")]
position = Vector2(202, 54)

[node name="BigTankHorizontal2" parent="Tilemaps/Actors" instance=ExtResource("6_cgxuy")]
position = Vector2(231, 54)

[node name="BigTankHorizontal3" parent="Tilemaps/Actors" instance=ExtResource("6_cgxuy")]
position = Vector2(223, 289)

[node name="BigTank" parent="Tilemaps/Actors" instance=ExtResource("8_tyndx")]
position = Vector2(288, 143)

[node name="BigTank2" parent="Tilemaps/Actors" instance=ExtResource("8_tyndx")]
position = Vector2(352, 143)

[node name="BigTank3" parent="Tilemaps/Actors" instance=ExtResource("8_tyndx")]
position = Vector2(288, 184)

[node name="BigTank4" parent="Tilemaps/Actors" instance=ExtResource("8_tyndx")]
position = Vector2(352, 184)

[node name="Camera" parent="Tilemaps/Actors" instance=ExtResource("7_lrgk6")]
position = Vector2(311, 60)

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

[node name="Chest" type="Marker2D" parent="Features"]
position = Vector2(328, 55)
script = ExtResource("8_5i0e8")
MarkerTexture = SubResource("AtlasTexture_1cc4q")
SpawnChance = 10.0

[node name="Chest2" type="Marker2D" parent="Features"]
position = Vector2(584, 134)
script = ExtResource("8_5i0e8")
MarkerTexture = SubResource("AtlasTexture_1cc4q")
SpawnChance = 10.0

[node name="Chest3" type="Marker2D" parent="Features"]
position = Vector2(87, 56)
script = ExtResource("8_5i0e8")
MarkerTexture = SubResource("AtlasTexture_1cc4q")
SpawnChance = 10.0

[node name="Chest4" type="Marker2D" parent="Features"]
position = Vector2(312, 279)
script = ExtResource("8_5i0e8")
MarkerTexture = SubResource("AtlasTexture_1cc4q")
SpawnChance = 10.0

[node name="Chest5" type="Marker2D" parent="Features"]
position = Vector2(167, 118)
script = ExtResource("8_5i0e8")
MarkerTexture = SubResource("AtlasTexture_1cc4q")
SpawnChance = 10.0

[node name="Teleporter" type="Marker2D" parent="Features"]
position = Vector2(320, 168)
script = ExtResource("10_1cc4q")
MarkerTexture = SubResource("AtlasTexture_h26ay")

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

[node name="RogueliteEnemySpawner6" type="Marker2D" parent="EnemySpawners"]
position = Vector2(246, 114)
script = ExtResource("7_cgxuy")
Enemy = ExtResource("8_lrgk6")

[node name="RogueliteEnemySpawner7" type="Marker2D" parent="EnemySpawners"]
position = Vector2(408, 158)
script = ExtResource("7_cgxuy")
Enemy = ExtResource("8_lrgk6")

[node name="RogueliteEnemySpawner8" type="Marker2D" parent="EnemySpawners"]
position = Vector2(79.6165, 191.795)
script = ExtResource("7_cgxuy")
Enemy = ExtResource("8_lrgk6")

[node name="RogueliteEnemySpawner9" type="Marker2D" parent="EnemySpawners"]
position = Vector2(284, 221.998)
script = ExtResource("7_cgxuy")
Enemy = ExtResource("8_lrgk6")

[node name="RogueliteEnemySpawner10" type="Marker2D" parent="EnemySpawners"]
position = Vector2(444.985, 243.404)
script = ExtResource("7_cgxuy")
Enemy = ExtResource("9_tyndx")

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

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

[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerEnterDetector"]
position = Vector2(320, 173.5)
shape = SubResource("RectangleShape2D_cgxuy")

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