[gd_scene load_steps=10 format=4 uid="uid://r2j1wyglsnt5"]

[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_h0a4q"]
[ext_resource type="Resource" uid="uid://bo4efv7rwowuh" path="res://Resources/RogueliteMaps/SecretRoom1.tres" id="2_h0a4q"]
[ext_resource type="Script" uid="uid://umyqgyxjiaig" path="res://Scripts/Actors/ChestMarker.cs" id="5_4m640"]
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="5_4wkxe"]
[ext_resource type="Texture2D" uid="uid://qeh4ai8h6sw5" path="res://Sprites/Chest.png" id="6_h0a4q"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="6_smkbu"]

[sub_resource type="NavigationPolygon" id="NavigationPolygon_rlq0q"]
vertices = PackedVector2Array(166, 58, 294, 58, 294, 134, 166, 134, 166, 150, 154, 150, 154, 134, 154, 58, 26, 134, 26, 58, 166, 10, 154, 10)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3), PackedInt32Array(3, 4, 5, 6), PackedInt32Array(0, 3, 6, 7), PackedInt32Array(6, 8, 9, 7), PackedInt32Array(10, 0, 7, 11)])
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_rlq0q"]
size = Vector2(272, 85)

[sub_resource type="AtlasTexture" id="AtlasTexture_cefq4"]
atlas = ExtResource("6_h0a4q")
region = Rect2(0, 0, 16, 16)

[node name="Map" type="Node2D" node_paths=PackedStringArray("RoomClearActivation")]
process_mode = 1
script = ExtResource("1_h0a4q")
RoomResource = ExtResource("2_h0a4q")
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("AAAAAAIAAAALAAUAAAAAAAMAAAALAAUAAAAAAAQAAAALAAUAAAAAAAUAAAALAAUAAAAAAAYAAAALAAUAAAAAAAcAAAALAAUAAAAAAAgAAAALAAUAAAAAAAkAAAALAAUAAAABAAIAAAALAAUAAAABAAMAAAALAAUAAAABAAQAAAALAAUAAAABAAUAAAALAAUAAAABAAYAAAALAAUAAAABAAcAAAALAAUAAAABAAgAAAALAAUAAAABAAkAAAALAAUAAAACAAIAAAALAAUAAAACAAMAAAALAAUAAAACAAQAAAALAAUAAAACAAUAAAALAAUAAAACAAYAAAALAAUAAAACAAcAAAALAAUAAAACAAgAAAALAAUAAAACAAkAAAALAAUAAAADAAIAAAALAAUAAAADAAMAAAALAAUAAAADAAQAAAALAAUAAAADAAUAAAALAAUAAAADAAYAAAALAAUAAAADAAcAAAALAAUAAAADAAgAAAALAAUAAAADAAkAAAALAAUAAAAEAAIAAAALAAUAAAAEAAMAAAALAAUAAAAEAAQAAAALAAUAAAAEAAUAAAALAAUAAAAEAAYAAAALAAUAAAAEAAcAAAALAAUAAAAEAAgAAAALAAUAAAAEAAkAAAALAAUAAAAFAAIAAAALAAUAAAAFAAMAAAALAAUAAAAFAAQAAAALAAUAAAAFAAUAAAALAAUAAAAFAAYAAAALAAUAAAAFAAcAAAALAAUAAAAFAAgAAAALAAUAAAAFAAkAAAALAAUAAAAGAAIAAAALAAUAAAAGAAMAAAALAAUAAAAGAAQAAAALAAUAAAAGAAUAAAALAAUAAAAGAAYAAAALAAUAAAAGAAcAAAALAAUAAAAGAAgAAAALAAUAAAAGAAkAAAALAAUAAAAHAAIAAAALAAUAAAAHAAMAAAALAAUAAAAHAAQAAAALAAUAAAAHAAUAAAALAAUAAAAHAAYAAAALAAUAAAAHAAcAAAALAAUAAAAHAAgAAAALAAUAAAAHAAkAAAALAAUAAAAIAAIAAAALAAUAAAAIAAMAAAALAAUAAAAIAAQAAAALAAUAAAAIAA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AAAARAAcAAAALAAUAAAARAAgAAAALAAUAAAARAAkAAAALAAUAAAASAAIAAAALAAUAAAASAAMAAAALAAUAAAASAAQAAAALAAUAAAASAAUAAAALAAUAAAASAAYAAAALAAUAAAASAAcAAAALAAUAAAASAAgAAAALAAUAAAASAAkAAAALAAUAAAATAAIAAAALAAUAAAATAAMAAAALAAUAAAATAAQAAAALAAUAAAATAAUAAAALAAUAAAATAAYAAAALAAUAAAATAAcAAAALAAUAAAATAAgAAAALAAUAAAATAAkAAAALAAUAAAAAAAAAAAALAAUAAAAAAAEAAAALAAUAAAABAAAAAAALAAUAAAABAAEAAAALAAUAAAACAAAAAAALAAUAAAACAAEAAAALAAUAAAADAAAAAAALAAUAAAADAAEAAAALAAUAAAAEAAAAAAALAAUAAAAEAAEAAAALAAUAAAAFAAAAAAALAAUAAAAFAAEAAAALAAUAAAAGAAAAAAALAAUAAAAGAAEAAAALAAUAAAAHAAAAAAALAAUAAAAHAAEAAAALAAUAAAAIAAAAAAALAAUAAAAIAAEAAAALAAUAAAAJAAAAAAALAAUAAAAJAAEAAAALAAUAAAAKAAAAAAALAAUAAAAKAAEAAAALAAUAAAALAAAAAAALAAUAAAALAAEAAAALAAUAAAALAAMAAAALAAUAAAALAAQAAAALAAUAAAAMAAAAAAALAAUAAAAMAAEAAAALAAUAAAAMAAMAAAALAAUAAAAMAAQAAAALAAUAAAANAAAAAAALAAUAAAANAAEAAAALAAUAAAAOAAAAAAALAAUAAAAOAAEAAAALAAUAAAAPAAAAAAALAAUAAAAPAAEAAAALAAUAAAAQAAAAAAALAAUAAAAQAAEAAAALAAUAAAARAAAAAAALAAUAAAARAAEAAAALAAUAAAASAAAAAAALAAUAAAASAAEAAAALAAUAAAATAAAAAAALAAUAAAATAAEAAAALAAUAAAA=")
tile_set = ExtResource("5_4wkxe")
navigation_enabled = false
script = ExtResource("6_smkbu")
_solidLayers = [NodePath("../Solid"), NodePath("../Props")]
metadata/_edit_lock_ = true

[node name="Solid" type="TileMapLayer" parent="Tilemaps" groups=["Solid"]]
tile_map_data = PackedByteArray("AAATAAAAAAACAAUAAAASAAAAAAABAAUAAAARAAAAAAABAAUAAAAQAAAAAAABAAUAAAAPAAAAAAABAAUAAAAOAAAAAAABAAUAAAANAAAAAAAFAAsAAAAMAAAAAAABAAQAAAALAAAAAAACAAQAAAAIAAAAAAADAAQAAAAHAAAAAAABAAQAAAAGAAAAAAAEAAsAAAAFAAAAAAABAAUAAAAEAAAAAAABAAUAAAADAAAAAAABAAUAAAACAAAAAAABAAUAAAABAAAAAAABAAUAAAAAAAAAAAAAAAUAAAATAAIAAAACAAcAAAATAAEAAAACAAYAAAAAAAIAAAAAAAcAAAAAAAEAAAAAAAYAAAAAAAkAAAAAAAcAAAAAAAgAAAAAAAYAAAAAAAcAAAACAAwAAAAAAAYAAAAFAAQAAAATAAkAAAACAAcAAAASAAkAAAABAAcAAAARAAkAAAABAAcAAAAQAAkAAAABAAcAAAAPAAkAAAABAAcAAAAOAAkAAAABAAcAAAANAAkAAAAFAAwAAAAMAAkAAAABAAQAAAALAAkAAAACAAQAAAAIAAkAAAADAAQAAAAHAAkAAAABAAQAAAAGAAkAAAAEAAwAAAAFAAkAAAABAAcAAAAEAAkAAAABAAcAAAADAAkAAAABAAcAAAACAAkAAAABAAcAAAABAAkAAAABAAcAAAATAAgAAAACAAYAAAATAAcAAAADAAwAAAATAAYAAAAFAAQAAAATAAMAAAAMAAUAAAATAAQAAAAMAAYAAAALAAEAAAAOAAUAAAALAAIAAAAOAAYAAAAMAAEAAAAOAAUAAAAMAAIAAAAOAAYAAAANAAEAAAAAAAYAAAANAAIAAAAAAAcAAAAOAAEAAAACAAgAAAAOAAIAAAABAAcAAAAPAAEAAAACAAgAAAAPAAIAAAABAAcAAAAQAAEAAAACAAgAAAAQAAIAAAABAAcAAAARAAEAAAACAAgAAAARAAIAAAABAAcAAAASAAEAAAACAAgAAAASAAIAAAABAAcAAAABAAEAAAACAAgAAAABAAIAAAABAAcAAAACAAEAAAACAAgAAAACAAIAAAABAAcAAAADAAEAAAACAAgAAAADAAIAAAABAAcAAAAEAAEAAAACAAgAAAAEAAIAAAABAAcAAAAFAAEAAAACAAgAAAAFAAIAAAABAAcAAAAGAAEAAAACAAYAAAAGAAIAAAACAAcAAAAHAAEAAAAOAAUAAAAHAAIAAAAOAAYAAAAIAAEAAAAOAAUAAAAIAAIAAAAOAAYAAAAAAAMAAAAMAAUAAAAAAAQAAAAMAAYAAAASAAgAAAACAAgAAAASAAcAAAABAAUAAAARAAgAAAACAAgAAAARAAcAAAABAAUAAAAQAAgAAAACAAgAAAAQAAcAAAABAAUAAAAPAAgAAAACAAgAAAAPAAcAAAABAAUAAAAOAAgAAAACAAgAAAAOAAcAAAABAAUAAAANAAgAAAAAAAYAAAANAAcAAAAAAAUAAAAGAAgAAAACAAYAAAAGAAcAAAACAAUAAAAFAAgAAAACAAgAAAAFAAcAAAABAAUAAAAEAAgAAAACAAgAAAAEAAcAAAABAAUAAAADAAgAAAACAAgAAAADAAcAAAABAAUAAAACAAgAAAACAAgAAAACAAcAAAABAAUAAAABAAgAAAACAAgAAAABAAcAAAABAAUAAAABAAMAAAAOAAUAAAABAAQAAAAOAAYAAAACAAMAAAAOAAUAAAACAAQAAAAOAAYAAAADAAMAAAAOAAUAAAADAAQAAAAOAAYAAAAEAAMAAAAOAAUAAAAEAAQAAAAOAAYAAAAFAAMAAAAOAAUAAAAFAAQAAAAOAAYAAAAGAAMAAAANAAUAAAAGAAQAAAANAAYAAAANAAMAAAANAAUAAAANAAQAAAANAAYAAAAOAAMAAAAOAAUAAAAOAAQAAAAOAAYAAAAPAAMAAAAOAAUAAAAPAAQAAAAOAAYAAAAQAAMAAAAOAAUAAAAQAAQAAAAOAAYAAAARAAMAAAAOAAUAAAARAAQAAAAOAAYAAAASAAMAAAAOAAUAAAASAAQAAAAOAAYAAAA=")
tile_set = ExtResource("5_4wkxe")
navigation_enabled = false
metadata/_edit_lock_ = true

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

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

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

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

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

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

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

[node name="Chest" type="Marker2D" parent="Features"]
position = Vector2(160, 94)
script = ExtResource("5_4m640")
MarkerTexture = SubResource("AtlasTexture_cefq4")
OverrideChance = true
SpawnChance = 100.0

[node name="Chest2" type="Marker2D" parent="Features"]
position = Vector2(144, 94)
script = ExtResource("5_4m640")
MarkerTexture = SubResource("AtlasTexture_cefq4")
OverrideChance = true
SpawnChance = 100.0

[node name="Chest3" type="Marker2D" parent="Features"]
position = Vector2(175, 94)
script = ExtResource("5_4m640")
MarkerTexture = SubResource("AtlasTexture_cefq4")
OverrideChance = true
SpawnChance = 100.0

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