[gd_scene load_steps=16 format=4 uid="uid://7svoss2nbksv"]

[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_ntv3p"]
[ext_resource type="Resource" uid="uid://do11fodskgasi" path="res://Resources/RogueliteMaps/RGTestRoom1.tres" id="2_ntv3p"]
[ext_resource type="PackedScene" uid="uid://l84on3kv2s52" path="res://Scenes/Door_Horizontal.tscn" id="3_7u0ti"]
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="5_76t1d"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="6_tcpmo"]
[ext_resource type="PackedScene" uid="uid://crph24e6e0v0q" path="res://Scenes/Interactable/Control_Pad.tscn" id="7_fyclk"]
[ext_resource type="PackedScene" uid="uid://cjsnhyl0nqbau" path="res://Scenes/Props/ICCTv.tscn" id="8_7u0ti"]
[ext_resource type="Script" uid="uid://8umfjejbkcsm" path="res://Scripts/Actors/RogueliteEnemySpawner.cs" id="9_wb0b4"]
[ext_resource type="Resource" uid="uid://qbo6avc7x64b" path="res://Resources/Enemies/Fairy_Guard.tres" id="10_76t1d"]
[ext_resource type="PackedScene" uid="uid://cqrkisw6jg24w" path="res://Scenes/Props/MainFrame1.tscn" id="10_wb0b4"]
[ext_resource type="Script" uid="uid://umyqgyxjiaig" path="res://Scripts/Actors/ChestMarker.cs" id="11_tcpmo"]
[ext_resource type="Texture2D" uid="uid://qeh4ai8h6sw5" path="res://Sprites/Chest.png" id="12_sgpia"]

[sub_resource type="NavigationPolygon" id="NavigationPolygon_rlq0q"]
vertices = PackedVector2Array(294, 250, 294, 262, 280, 262, 104, 250, 280, 278, 248, 278, 218, 262, 248, 294, 218, 294, 166, 262, 166, 310, 154, 310, 154, 294, 136, 294, 136, 278, 40, 278, 40, 260, 57, 260, 57, 264, 104, 264, 250, 138, 294, 150, 280, 150, 184, 148, 198, 138, 250, 68, 264, 68, 264, 84, 294, 84, 184, 102, 198, 58, 166, 58, 136, 102, 280, 166, 262, 166, 262, 198, 250, 198, 250, 166, 136, 148, 72, 166, 72, 150, 40, 150, 40, 134, 70, 138, 26, 134, 26, 84, 40, 84, 40, 58, 70, 58, 122, 138, 122, 58, 154, 58, 166, 10, 154, 10)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3), PackedInt32Array(2, 4, 5, 6), PackedInt32Array(5, 7, 8, 6), PackedInt32Array(9, 10, 11, 12), PackedInt32Array(12, 13, 14, 9), PackedInt32Array(15, 16, 17, 18), PackedInt32Array(14, 15, 18, 19), PackedInt32Array(14, 19, 3, 9), PackedInt32Array(3, 2, 6), PackedInt32Array(3, 6, 9), PackedInt32Array(20, 21, 22, 23, 24), PackedInt32Array(20, 25, 26, 27), PackedInt32Array(27, 28, 21, 20), PackedInt32Array(24, 23, 29, 30), PackedInt32Array(31, 30, 29, 32), PackedInt32Array(22, 33, 34, 23), PackedInt32Array(34, 35, 36, 37), PackedInt32Array(23, 34, 37), PackedInt32Array(38, 23, 37, 39, 40), PackedInt32Array(40, 41, 42, 43), PackedInt32Array(42, 44, 45, 46), PackedInt32Array(46, 47, 48, 43), PackedInt32Array(42, 46, 43), PackedInt32Array(40, 43, 49, 38), PackedInt32Array(32, 38, 49, 50), PackedInt32Array(32, 50, 51), PackedInt32Array(31, 32, 51), PackedInt32Array(52, 31, 51, 53)])
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_4lag8"]
size = Vector2(272, 247)

[sub_resource type="AtlasTexture" id="AtlasTexture_h0uip"]
atlas = ExtResource("12_sgpia")
region = Rect2(0, 0, 16, 16)

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

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

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

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

[node name="HorizontalDoor" parent="Tilemaps/Actors" instance=ExtResource("3_7u0ti")]
position = Vector2(256, 224)

[node name="ControlPad" parent="Tilemaps/Actors" node_paths=PackedStringArray("Target") instance=ExtResource("7_fyclk")]
position = Vector2(248, 34)
Target = NodePath("../HorizontalDoor")

[node name="ICCTv" parent="Tilemaps/Actors" instance=ExtResource("8_7u0ti")]
position = Vector2(112, 228)

[node name="Mainframe" parent="Tilemaps/Actors" instance=ExtResource("10_wb0b4")]
position = Vector2(71, 52)

[node name="ControlPad2" parent="Tilemaps/Actors" node_paths=PackedStringArray("Target") instance=ExtResource("7_fyclk")]
position = Vector2(230, 226)
Target = NodePath("../HorizontalDoor")

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

[node name="RogueliteEnemySpawner" type="Marker2D" parent="EnemySpawners"]
position = Vector2(145, 158)
script = ExtResource("9_wb0b4")
Enemy = ExtResource("10_76t1d")

[node name="RogueliteEnemySpawner2" type="Marker2D" parent="EnemySpawners"]
position = Vector2(268.316, 100.913)
script = ExtResource("9_wb0b4")
Enemy = ExtResource("10_76t1d")

[node name="RogueliteEnemySpawner3" type="Marker2D" parent="EnemySpawners"]
position = Vector2(49.2999, 84.7852)
script = ExtResource("9_wb0b4")
Enemy = ExtResource("10_76t1d")

[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, 175.5)
shape = SubResource("RectangleShape2D_4lag8")

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

[node name="Chest" type="Marker2D" parent="Features"]
position = Vector2(264, 55)
script = ExtResource("11_tcpmo")
MarkerTexture = SubResource("AtlasTexture_h0uip")
SpawnChance = 10.0

[node name="Chest2" type="Marker2D" parent="Features"]
position = Vector2(40, 263)
script = ExtResource("11_tcpmo")
MarkerTexture = SubResource("AtlasTexture_h0uip")
SpawnChance = 10.0

[node name="Chest3" type="Marker2D" parent="Features"]
position = Vector2(40, 152)
script = ExtResource("11_tcpmo")
MarkerTexture = SubResource("AtlasTexture_h0uip")
SpawnChance = 10.0

[node name="Chest4" type="Marker2D" parent="Features"]
position = Vector2(39, 56)
script = ExtResource("11_tcpmo")
MarkerTexture = SubResource("AtlasTexture_h0uip")
SpawnChance = 10.0

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