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

[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_0pyb7"]
[ext_resource type="Resource" uid="uid://cb7gk278lmicd" path="res://Resources/RogueliteMaps/Lab2x1_1.tres" id="2_0pyb7"]
[ext_resource type="Script" uid="uid://8umfjejbkcsm" path="res://Scripts/Actors/RogueliteEnemySpawner.cs" id="5_66iak"]
[ext_resource type="PackedScene" uid="uid://dcbcyp1qogcl0" path="res://Scenes/Props/BigTankHorizontal.tscn" id="5_k6m50"]
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="5_xmtgx"]
[ext_resource type="Resource" uid="uid://qbo6avc7x64b" path="res://Resources/Enemies/Fairy_Guard.tres" id="6_0pyb7"]
[ext_resource type="PackedScene" uid="uid://cjsnhyl0nqbau" path="res://Scenes/Props/ICCTv.tscn" id="6_a4eus"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="6_k6m50"]
[ext_resource type="Script" uid="uid://umyqgyxjiaig" path="res://Scripts/Actors/ChestMarker.cs" id="7_u0u4o"]
[ext_resource type="Texture2D" uid="uid://qeh4ai8h6sw5" path="res://Sprites/Chest.png" id="8_8uhw6"]
[ext_resource type="Script" uid="uid://g6oraxgd87ij" path="res://Scripts/Actors/TeleporterMarker.cs" id="10_a4eus"]
[ext_resource type="Texture2D" uid="uid://d3e762pxublbt" path="res://Sprites/teleporter.png" id="11_h1hkp"]

[sub_resource type="NavigationPolygon" id="NavigationPolygon_f7qjl"]
vertices = PackedVector2Array(614, 90, 614, 102, 598, 102, 312, 100, 598, 90, 280, 100, 232, 102, 218, 90, 218, 68, 248, 68, 280, 70, 248, 58, 376, 58, 376, 68, 312, 70, 422, 68, 422, 90, 474, 90, 474, 10, 486, 10, 486, 90, 522, 90, 522, 84, 552, 84, 552, 74, 598, 74, 598, 118, 522, 118, 522, 102, 486, 102, 486, 150, 474, 150, 474, 102, 422, 102, 422, 134, 408, 134, 408, 118, 377, 118, 377, 134, 344, 134, 344, 118, 312, 118, 312, 134, 280, 134, 280, 118, 232, 118, 166, 102, 166, 150, 154, 150, 154, 102, 118, 102, 118, 118, 104, 118, 104, 102, 56, 102, 56, 118, 42, 118, 42, 102, 26, 102, 26, 90, 42, 90, 88, 74, 88, 84, 42, 74, 118, 84, 118, 90, 154, 90, 166, 90, 154, 10, 166, 10)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3, 4), PackedInt32Array(5, 6, 7, 8, 9, 10), PackedInt32Array(10, 9, 11, 12, 13, 14), PackedInt32Array(13, 15, 16, 3, 14), PackedInt32Array(17, 18, 19, 20), PackedInt32Array(21, 22, 23, 4), PackedInt32Array(23, 24, 25, 4), PackedInt32Array(2, 26, 27, 28), PackedInt32Array(3, 2, 28), PackedInt32Array(3, 28, 29), PackedInt32Array(29, 30, 31, 32), PackedInt32Array(3, 29, 32), PackedInt32Array(3, 32, 33), PackedInt32Array(33, 34, 35, 36), PackedInt32Array(3, 33, 36, 37), PackedInt32Array(37, 38, 39, 40), PackedInt32Array(3, 37, 40), PackedInt32Array(3, 40, 41, 5), PackedInt32Array(41, 42, 43, 44), PackedInt32Array(5, 41, 44), PackedInt32Array(5, 44, 45, 6), PackedInt32Array(46, 47, 48, 49), PackedInt32Array(50, 51, 52, 53), PackedInt32Array(54, 55, 56, 57), PackedInt32Array(57, 58, 59, 60), PackedInt32Array(54, 57, 60, 61, 62), PackedInt32Array(60, 63, 61), PackedInt32Array(53, 54, 62, 64, 65), PackedInt32Array(50, 53, 65), PackedInt32Array(49, 50, 65, 66), PackedInt32Array(46, 49, 66, 67), PackedInt32Array(66, 68, 69, 67), PackedInt32Array(46, 67, 7, 6), PackedInt32Array(21, 4, 3), PackedInt32Array(20, 21, 3), PackedInt32Array(17, 20, 3), PackedInt32Array(3, 16, 17)])
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_wtdf1"]
size = Vector2(591, 85)

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

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

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

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

[node name="Liquids" type="TileMapLayer" parent="Tilemaps"]
tile_map_data = PackedByteArray("AAAJAAMAAAAEAAMAAAAJAAQAAAAEAAMAAAAJAAUAAAAEAAMAAAAJAAYAAAAEAAMAAAAJAAcAAAAEAAMAAAAJAAgAAAAEAAMAAAAKAAMAAAAEAAMAAAAKAAQAAAAEAAMAAAAKAAUAAAAEAAMAAAAKAAYAAAAEAAMAAAAKAAcAAAAEAAMAAAAKAAgAAAAEAAMAAAAdAAMAAAAEAAMAAAAdAAQAAAAEAAMAAAAdAAUAAAAEAAMAAAAdAAYAAAAEAAMAAAAdAAcAAAAEAAMAAAAdAAgAAAAEAAMAAAAeAAMAAAAEAAMAAAAeAAQAAAAEAAMAAAAeAAUAAAAEAAMAAAAeAAYAAAAEAAMAAAAeAAcAAAAEAAMAAAAeAAgAAAAEAAMAAAA=")
tile_set = ExtResource("5_xmtgx")

[node name="Floor" type="TileMapLayer" parent="Tilemaps" node_paths=PackedStringArray("_solidLayers") groups=["Solid"]]
tile_map_data = PackedByteArray("[encoded data, 6404 characters]")
tile_set = ExtResource("5_xmtgx")
navigation_enabled = false
script = ExtResource("6_k6m50")
_solidLayers = [NodePath("../Solid"), NodePath("../Props")]
metadata/_edit_lock_ = true

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

[node name="Props" type="TileMapLayer" parent="Tilemaps" groups=["Solid"]]
tile_map_data = PackedByteArray("AAAIAAEAAAAKAAwAAAAIAAIAAAAKAA0AAAALAAEAAAAJAAwAAAALAAIAAAAJAA0AAAAfAAIAAAAJAA0AAAAfAAEAAAAJAAwAAAAcAAEAAAAKAAwAAAAcAAIAAAAKAA0AAAALAAMAAAAJAAwAAAALAAQAAAAJAA0AAAABAAQAAAAKAA0AAAABAAMAAAAKAAwAAAAMAAMAAAAKAAwAAAAMAAQAAAAKAA0AAAAcAAMAAAAKAAwAAAAcAAQAAAAKAA0AAAAbAAMAAAAJAAwAAAAbAAQAAAAJAA0AAAAmAAMAAAAJAAwAAAAmAAQAAAAJAA0AAAAfAAMAAAAKAA4AAAAfAAQAAAAKAA8AAAAIAAMAAAAKAA4AAAAIAAQAAAAKAA8AAAAYAAgAAQAAAAAAAQAPAAgAAQAAAAAAAgAQAAgAAQAAAAAAAgAYAAMAAQAAAAAAAgAZAAMAAQAAAAAAAgAgAAQAAQAAAAAAAgAhAAQAAQAAAAAAAgAGAAQAAQAAAAAAAgAHAAQAAQAAAAAAAgANAAMAAQAAAAAAFAAOAAMAAQAAAAAAAgANAAcAAQAAAAAAEAANAAgAAQAAAAAAEwAOAAgAAQAAAAAAEAAFAAcAAQAAAAAAEAAEAAcAAQAAAAAAEAAUAAgAAQAAAAAAEAASAAUAAQAAAAAAEAAJAAQAAQAAAAAAGQAKAAgAAQAAAAAAFwAeAAQAAQAAAAAAFwAdAAgAAQAAAAAAAQAJAAgAAQAAAAAAEwAeAAgAAQAAAAAAEwA=")
tile_set = ExtResource("5_xmtgx")
navigation_enabled = 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_k6m50")]
position = Vector2(160, 50)

[node name="BigTankHorizontal2" parent="Tilemaps/Actors" instance=ExtResource("5_k6m50")]
position = Vector2(480, 50)

[node name="ICCTv" parent="Tilemaps/Actors" instance=ExtResource("6_a4eus")]
position = Vector2(263, 36)

[node name="ICCTv2" parent="Tilemaps/Actors" instance=ExtResource("6_a4eus")]
position = Vector2(367, 35)

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

[node name="RogueliteEnemySpawner9" type="Marker2D" parent="EnemySpawners"]
position = Vector2(261, 66)
script = ExtResource("5_66iak")
Enemy = ExtResource("6_0pyb7")

[node name="RogueliteEnemySpawner10" type="Marker2D" parent="EnemySpawners"]
position = Vector2(292, 123)
script = ExtResource("5_66iak")
Enemy = ExtResource("6_0pyb7")

[node name="RogueliteEnemySpawner11" type="Marker2D" parent="EnemySpawners"]
position = Vector2(370, 112)
script = ExtResource("5_66iak")
Enemy = ExtResource("6_0pyb7")

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

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

[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerEnterDetector"]
position = Vector2(321.5, 94.5)
shape = SubResource("RectangleShape2D_wtdf1")

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

[node name="Chest" type="Marker2D" parent="Features"]
position = Vector2(408, 135)
script = ExtResource("7_u0u4o")
MarkerTexture = SubResource("AtlasTexture_gq82i")
SpawnChance = 10.0

[node name="Chest2" type="Marker2D" parent="Features"]
position = Vector2(424, 55)
script = ExtResource("7_u0u4o")
MarkerTexture = SubResource("AtlasTexture_gq82i")
SpawnChance = 10.0

[node name="Chest3" type="Marker2D" parent="Features"]
position = Vector2(104, 119)
script = ExtResource("7_u0u4o")
MarkerTexture = SubResource("AtlasTexture_gq82i")
SpawnChance = 10.0

[node name="Chest4" type="Marker2D" parent="Features"]
position = Vector2(552, 71)
script = ExtResource("7_u0u4o")
MarkerTexture = SubResource("AtlasTexture_gq82i")
SpawnChance = 10.0

[node name="Teleporter2" type="Marker2D" parent="Features"]
position = Vector2(327, 56)
script = ExtResource("10_a4eus")
MarkerTexture = SubResource("AtlasTexture_hd8gv")

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