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

[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_84eqy"]
[ext_resource type="Resource" uid="uid://b8lpo4im87rx7" path="res://Resources/RogueliteMaps/Long_Factory.tres" id="2_k6121"]
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="3_1d8fc"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="4_x05mq"]
[ext_resource type="PackedScene" uid="uid://b0gpbkxdfbnjh" path="res://Scenes/Actors/ForceField_Horizontal.tscn" id="5_1d8fc"]
[ext_resource type="PackedScene" uid="uid://dcbcyp1qogcl0" path="res://Scenes/Props/BigTankHorizontal.tscn" id="6_rse1i"]
[ext_resource type="Script" uid="uid://8umfjejbkcsm" path="res://Scripts/Actors/RogueliteEnemySpawner.cs" id="6_x05mq"]
[ext_resource type="Resource" uid="uid://qbo6avc7x64b" path="res://Resources/Enemies/Fairy_Guard.tres" id="7_agp2x"]
[ext_resource type="PackedScene" uid="uid://dux8pv1y8wkt0" path="res://Scenes/Props/Capacitor.tscn" id="7_jw5yi"]
[ext_resource type="Resource" uid="uid://cqfyuurvqb8m6" path="res://Resources/Enemies/Base_Fairy_Special.tres" id="8_agp2x"]
[ext_resource type="Script" uid="uid://umyqgyxjiaig" path="res://Scripts/Actors/ChestMarker.cs" id="10_3vkr4"]
[ext_resource type="Texture2D" uid="uid://qeh4ai8h6sw5" path="res://Sprites/Chest.png" id="11_oc0wb"]
[ext_resource type="Script" uid="uid://g6oraxgd87ij" path="res://Scripts/Actors/TeleporterMarker.cs" id="13_ywpvq"]
[ext_resource type="Texture2D" uid="uid://d3e762pxublbt" path="res://Sprites/teleporter.png" id="14_6wia5"]

[sub_resource type="NavigationPolygon" id="NavigationPolygon_rlq0q"]
vertices = PackedVector2Array(184, 404, 262, 394, 294, 394, 294, 422, 246, 422, 232, 392, 201, 392, 244, 164, 262, 102, 262, 218, 234, 298, 244, 134, 250, 90, 184, 358, 201, 358, 262, 372, 248, 372, 232, 358, 248, 326, 166, 58, 198, 58, 198, 90, 86, 134, 250, 68, 280, 68, 294, 102, 280, 58, 294, 58, 154, 230, 152, 230, 152, 214, 168, 214, 136, 214, 136, 202, 184, 202, 184, 214, 168, 230, 166, 230, 154, 298, 166, 298, 234, 164, 280, 218, 280, 228, 294, 228, 294, 262, 280, 262, 262, 278, 280, 278, 262, 326, 120, 358, 120, 342, 89, 342, 89, 358, 88, 358, 72, 356, 72, 294, 74, 294, 88, 388, 136, 388, 136, 404, 104, 438, 74, 438, 74, 422, 246, 438, 201, 438, 201, 454, 166, 454, 166, 470, 154, 470, 154, 454, 104, 454, 26, 422, 26, 394, 58, 394, 58, 356, 74, 262, 26, 262, 26, 228, 40, 228, 40, 218, 58, 218, 58, 164, 68, 164, 68, 134, 58, 134, 58, 102, 26, 102, 26, 72, 54, 72, 54, 71, 70, 71, 70, 90, 122, 90, 122, 58, 154, 58, 154, 10, 166, 10, 86, 298)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3, 4), PackedInt32Array(5, 1, 0, 6), PackedInt32Array(7, 8, 9, 10), PackedInt32Array(8, 7, 11, 12), PackedInt32Array(6, 0, 13, 14), PackedInt32Array(15, 1, 5, 16), PackedInt32Array(16, 5, 17, 18), PackedInt32Array(19, 20, 21, 22), PackedInt32Array(8, 12, 23, 24, 25), PackedInt32Array(24, 26, 27, 25), PackedInt32Array(28, 29, 30, 31), PackedInt32Array(30, 32, 33, 34), PackedInt32Array(34, 35, 31), PackedInt32Array(30, 34, 31), PackedInt32Array(31, 36, 37), PackedInt32Array(28, 31, 37, 38), PackedInt32Array(38, 37, 39), PackedInt32Array(10, 40, 7), PackedInt32Array(9, 41, 42, 10), PackedInt32Array(42, 43, 44, 45), PackedInt32Array(10, 42, 45, 46), PackedInt32Array(45, 47, 46), PackedInt32Array(10, 46, 48, 18), PackedInt32Array(39, 13, 49, 50, 38), PackedInt32Array(51, 52, 53, 54, 55, 56), PackedInt32Array(57, 58, 59, 60, 61, 62), PackedInt32Array(4, 63, 64, 0), PackedInt32Array(0, 64, 65, 66, 59), PackedInt32Array(66, 67, 68, 69), PackedInt32Array(59, 66, 69), PackedInt32Array(59, 69, 70, 60), PackedInt32Array(62, 71, 72, 73), PackedInt32Array(53, 57, 62, 73, 74, 54), PackedInt32Array(75, 76, 77, 78), PackedInt32Array(78, 79, 80, 75), PackedInt32Array(80, 81, 82, 75), PackedInt32Array(83, 84, 85), PackedInt32Array(85, 86, 87, 88), PackedInt32Array(85, 88, 89, 90, 91), PackedInt32Array(92, 93, 94), PackedInt32Array(94, 95, 96, 19), PackedInt32Array(21, 12, 11, 22), PackedInt32Array(94, 19, 22, 92), PackedInt32Array(85, 91, 92, 22, 83), PackedInt32Array(82, 83, 22, 97, 75), PackedInt32Array(50, 51, 56, 97), PackedInt32Array(39, 10, 18, 17, 14), PackedInt32Array(39, 14, 13), PackedInt32Array(97, 38, 50), PackedInt32Array(97, 56, 75)])
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_jw5yi"]
atlas = ExtResource("11_oc0wb")
region = Rect2(0, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_u0dtp"]
atlas = ExtResource("14_6wia5")
region = Rect2(0, 0, 16, 16)

[node name="Map" type="Node2D" node_paths=PackedStringArray("RoomClearActivation")]
process_mode = 1
script = ExtResource("1_84eqy")
RoomResource = ExtResource("2_k6121")
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_1d8fc")
navigation_enabled = false
script = ExtResource("4_x05mq")
_solidLayers = [NodePath("../Solid"), NodePath("../Props")]
metadata/_edit_lock_ = true

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

[node name="Props" type="TileMapLayer" parent="Tilemaps" groups=["Solid"]]
tile_map_data = PackedByteArray("AAAKABcAAQAAAAAAEAAJABcAAQAAAAAAEAAJABgAAQAAAAAAEAAKABgAAQAAAAAAEAAHABIAAQAAAAAAEgALABcAAQAAAAAAEgADABMAAQAAAAAADwADABQAAQAAAAAADwAQABYAAQAAAAAADgAQABUAAQAAAAAADgAGABAAAAAJAAwAAAAGABEAAAAJAA0AAAANABAAAAAKAAwAAAANABEAAAAKAA0AAAACABYAAAAKAAwAAAACABcAAAAKAA0AAAARABYAAAAJAAwAAAARABcAAAAJAA0AAAARAAsAAAAJAAwAAAARAAwAAAAJAA0AAAACAAsAAAAKAAwAAAACAAwAAAAKAA0AAAATAA0AAAAKAA4AAAATAA4AAAAKAA8AAAAAAA0AAAAKAA4AAAAAAA4AAAAKAA8AAAAAABcAAAAKAA4AAAAAABgAAAAKAA8AAAATABcAAAAKAA4AAAATABgAAAAKAA8AAAATAAMAAAAKAA4AAAATAAQAAAAKAA8AAAAAAAMAAAAKAA4AAAAAAAQAAAAKAA8AAAAIAAEAAAAKAAwAAAAIAAIAAAAKAA0AAAAGAAMAAAAKAAwAAAAGAAQAAAAKAA0AAAAOAAMAAAAKAAwAAAAOAAQAAAAKAA0AAAANAAMAAAAJAAwAAAANAAQAAAAJAA0AAAALAAEAAAAJAAwAAAALAAIAAAAJAA0AAAAFAAMAAAAJAAwAAAAFAAQAAAAJAA0AAAALABAAAAAJAAwAAAALABEAAAAJAA0AAAAIABAAAAAKAAwAAAAIABEAAAAKAA0AAAAPABwAAQAAAAAADgADABUAAQAAAAAADgABABEAAQAAAAAADAASABEAAQAAAAAADAANABwAAQAAAAAAAQAHAA0AAQAAAAAADAAHAAwAAQAAAAAAAgAMAAwAAQAAAAAAFQAMAA0AAQAAAAAADAAHAA4AAQAAAAAAEwAIAA4AAQAAAAAAEAALAA4AAQAAAAAAEAAMAA4AAQAAAAAAEAADAAkAAAAEAAkAAAACABEAAAAGAAoAAAADABEAAAAIAAgAAAAOAAkAAAAEAAkAAAANABcAAQAAAAAAAQAGABYAAQAAAAAAAQAHABcAAQAAAAAAAgAGABcAAQAAAAAAAgALAAwAAQAAAAAAEwA=")
tile_set = ExtResource("3_1d8fc")
navigation_enabled = false
metadata/_edit_lock_ = true

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

[node name="HorizontalForceField" parent="Tilemaps/Actors" instance=ExtResource("5_1d8fc")]
position = Vector2(160, 272)

[node name="BigTankHorizontal" parent="Tilemaps/Actors" instance=ExtResource("6_rse1i")]
position = Vector2(31, 49)

[node name="BigTankHorizontal2" parent="Tilemaps/Actors" instance=ExtResource("6_rse1i")]
position = Vector2(65, 48)

[node name="Capacitor" parent="Tilemaps/Actors" node_paths=PackedStringArray("Target") instance=ExtResource("7_jw5yi")]
position = Vector2(296, 55)
Health = 6.0
ActivationType = 2
Target = NodePath("../HorizontalForceField")

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

[node name="RogueliteEnemySpawner4" type="Marker2D" parent="EnemySpawners"]
position = Vector2(108, 123)
script = ExtResource("6_x05mq")
Enemy = ExtResource("7_agp2x")

[node name="RogueliteEnemySpawner7" type="Marker2D" parent="EnemySpawners"]
position = Vector2(90, 318)
script = ExtResource("6_x05mq")
Enemy = ExtResource("8_agp2x")

[node name="RogueliteEnemySpawner8" type="Marker2D" parent="EnemySpawners"]
position = Vector2(260, 155)
script = ExtResource("6_x05mq")
Enemy = ExtResource("8_agp2x")

[node name="RogueliteEnemySpawner5" type="Marker2D" parent="EnemySpawners"]
position = Vector2(198, 301)
script = ExtResource("6_x05mq")
Enemy = ExtResource("7_agp2x")

[node name="RogueliteEnemySpawner6" type="Marker2D" parent="EnemySpawners"]
position = Vector2(114, 401)
script = ExtResource("6_x05mq")
Enemy = ExtResource("7_agp2x")

[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(183, 392)
script = ExtResource("10_3vkr4")
MarkerTexture = SubResource("AtlasTexture_jw5yi")
SpawnChance = 10.0

[node name="Marker2D6" type="Marker2D" parent="Features"]
position = Vector2(160, 199)
script = ExtResource("10_3vkr4")
MarkerTexture = SubResource("AtlasTexture_jw5yi")
OverrideChance = true
SpawnChance = 100.0

[node name="Marker2D2" type="Marker2D" parent="Features"]
position = Vector2(280, 280)
script = ExtResource("10_3vkr4")
MarkerTexture = SubResource("AtlasTexture_jw5yi")
SpawnChance = 10.0

[node name="Marker2D3" type="Marker2D" parent="Features"]
position = Vector2(56, 360)
script = ExtResource("10_3vkr4")
MarkerTexture = SubResource("AtlasTexture_jw5yi")
SpawnChance = 10.0

[node name="Marker2D4" type="Marker2D" parent="Features"]
position = Vector2(279, 55)
script = ExtResource("10_3vkr4")
MarkerTexture = SubResource("AtlasTexture_jw5yi")
SpawnChance = 10.0

[node name="Marker2D5" type="Marker2D" parent="Features"]
position = Vector2(232, 456)
script = ExtResource("10_3vkr4")
MarkerTexture = SubResource("AtlasTexture_jw5yi")
SpawnChance = 10.0

[node name="Teleporter" type="Marker2D" parent="Features"]
position = Vector2(159, 119)
script = ExtResource("13_ywpvq")
MarkerTexture = SubResource("AtlasTexture_u0dtp")

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