[gd_scene load_steps=27 format=4 uid="uid://5klhna6pdpss"]

[ext_resource type="Script" uid="uid://doxmbokehw8ci" path="res://Scripts/GameManager.cs" id="1_uhxhn"]
[ext_resource type="PackedScene" uid="uid://c4pr2707hbeph" path="res://Scenes/Actors/fsm_player.tscn" id="2_y24l4"]
[ext_resource type="Script" uid="uid://mja0rk7n2kln" path="res://Scripts/Resources/MapStartDataResource.cs" id="4_7nc7l"]
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="5_bsah1"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="6_f3h3l"]
[ext_resource type="Script" uid="uid://cfya7sndh7vy2" path="res://Scenes/CameraController.gd" id="7_4a7df"]
[ext_resource type="PackedScene" uid="uid://b0gpbkxdfbnjh" path="res://Scenes/Actors/ForceField_Horizontal.tscn" id="8_5cbgu"]
[ext_resource type="Script" uid="uid://c5nxsq3tyxcx6" path="res://Scripts/InventoryManager.cs" id="8_scbgd"]
[ext_resource type="PackedScene" uid="uid://bc054js8ep2b" path="res://Scenes/Actors/FairyGuard_New.tscn" id="8_vi7eu"]
[ext_resource type="PackedScene" uid="uid://cd36ch65jijg0" path="res://Scenes/Activable/BulletEmitter.tscn" id="9_tniww"]
[ext_resource type="PackedScene" uid="uid://dkwi1hu1bixoe" path="res://Scenes/HUD/HUD.tscn" id="9_xs7rn"]
[ext_resource type="Script" uid="uid://bdshph801ac2i" path="res://Scenes/CameraTarget.gd" id="10_86lpq"]
[ext_resource type="Resource" uid="uid://bj331rcsq65es" path="res://Resources/Bullets/EmitterTestBullet.tres" id="10_gkpxd"]
[ext_resource type="Script" uid="uid://cnkipcolyj61w" path="res://Scripts/AlarmManager.cs" id="11_njjjf"]
[ext_resource type="PackedScene" uid="uid://bqjcwxene73l2" path="res://Scenes/Actors/ActorEnemyTest.tscn" id="12_8mkvw"]
[ext_resource type="PackedScene" uid="uid://d1h48wgasakk4" path="res://Scenes/Interactable/alarm_box.tscn" id="14_pr50u"]
[ext_resource type="PackedScene" uid="uid://dnbtou2fklyvp" path="res://Scenes/Actors/alarm_sign.tscn" id="15_a8c3x"]
[ext_resource type="PackedScene" uid="uid://byms2dhliyux0" path="res://Scenes/Actors/teleporter.tscn" id="16_5qis2"]
[ext_resource type="PackedScene" uid="uid://crph24e6e0v0q" path="res://Scenes/Interactable/Control_Pad.tscn" id="16_ijcqi"]
[ext_resource type="Script" uid="uid://c8hd02ggvk1p2" path="res://Scripts/Actors/AlarmTeleporterActorSpawner.cs" id="17_7pavy"]
[ext_resource type="Script" uid="uid://d0a0o50j82eo6" path="res://Scripts/Activables/ScriptableBase.cs" id="17_wpn2u"]
[ext_resource type="Script" uid="uid://b5fesrd4lv8t1" path="res://Scripts/Resources/Events/EventResource.cs" id="18_4t2j0"]
[ext_resource type="Script" uid="uid://c8tx1gh0lxt0t" path="res://Scripts/Resources/Events/AlarmEnableEvent.cs" id="18_q3u5g"]
[ext_resource type="LabelSettings" uid="uid://buk3e7bbwmnv1" path="res://Resources/Styles/Hud_Text_Style.tres" id="19_1ywt4"]

[sub_resource type="Resource" id="Resource_6wo78"]
script = ExtResource("4_7nc7l")
EggIndex = 0
StartingEquipment = []

[sub_resource type="Resource" id="Resource_0a8l3"]
script = ExtResource("18_q3u5g")
WaitForCompletion = true

[node name="GameScene" type="Node2D"]
process_mode = 3
script = ExtResource("1_uhxhn")
PlayerTemplate = ExtResource("2_y24l4")
SpawnMarkers = Dictionary[int, NodePath]({
0: NodePath("PlayerStartPosition")
})
MapStartData = SubResource("Resource_6wo78")

[node name="Tilemaps" type="Node2D" parent="."]
process_mode = 1

[node name="Floor" type="TileMapLayer" parent="Tilemaps" node_paths=PackedStringArray("_solidLayers")]
tile_map_data = PackedByteArray("[encoded data, 24276 characters]")
tile_set = ExtResource("5_bsah1")
script = ExtResource("6_f3h3l")
_solidLayers = []
metadata/_edit_lock_ = true

[node name="Solid" type="TileMapLayer" parent="Tilemaps" groups=["Sol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UABQAAAAAAAcAAAAUABMAAAAAAAUAAAAUABkAAAACAAcAAAAUABgAAAACAAUAAAATABkAAAAAAAcAAAATABgAAAAAAAUAAAAFABsAAAACAAcAAAAFABoAAAACAAYAAAAFABkAAAACAAUAAAAEABsAAAAAAAcAAAAEABoAAAAAAAYAAAAEABkAAAAAAAUAAAAHABoAAAAEAAQAAAAHABkAAAAFAAQAAAAOABQAAAABAAYAAAAKABUAAAAEAAQAAAAKABQAAAAAAAQAAAAKABMAAAAAAAQAAAAKABIAAAAFAAQAAAARABMAAAACAAcAAAARABIAAAACAAUAAAAQABMAAAAAAAcAAAAQABIAAAAAAAUAAAD9/xoAAAAEAAQAAAD9/xkAAAAAAAQAAAD9/xgAAAAFAAQAAAD9/xYAAAAKAAkAAAAOACAAAAADAAQAAAANACAAAAABAAQAAAAMACAAAAABAAQAAAALACAAAAACAAQAAAACACEAAAACAAcAAAACACAAAAACAAUAAAABACEAAAABAAcAAAABACAAAAABAAUAAAAAACEAAAABAAcAAAAAACAAAAABAAUAAAD//yEAAAAAAAcAAAD//yAAAAAAAAUAAAAJACMAAAADAAQAAAAIACMAAAABAAQAAAAHACMAAAABAAQAAAAGACMAAAABAAQAAAAFACMAAAABAAQAAAAEACMAAAACAAQAAAAWACEAAAACAAcAAAAWACAAAAACAAYAAAAWAB8AAAACAAUAAAAVACEAAAABAAcAAAAVACAAAAACAAgAAAAVAB8AAAABAAUAAAAUACEAAAAAAAcAAAAUACAAAAAAAAYAAAAUAB8AAAAAAAUAAAALABsAAAAKAAgAAAALABwAAAAKAAkAAAAMABsAAAAKAAgAAAAMABwAAAAKAAkAAAANABsAAAAKAAgAAAANABwAAAAKAAkAAAAOABsAAAAKAAgAAAAOABwAAAAKAAkAAAATABoAAAAKAAgAAAATABsAAAAKAAkAAAAUABoAAAAKAAgAAAAUABsAAAAKAAkAAAAUABUAAAAKAAgAAAAUABYAAAAKAAkAAAAVABUAAAAKAAgAAAAVABYAAAAKAAkAAAAWABUAAAAKAAgAA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UAAAD9/xQAAAAAAAcAAAD9/xMAAAAAAAUAAAD9/xAAAAAKAAgAAAD9/xEAAAAKAAkAAAD+/xAAAAAKAAgAAAD+/xEAAAAKAAkAAAD//xAAAAAKAAgAAAD//xEAAAAKAAkAAAD9/xUAAAAKAAgAAAD+/xUAAAAKAAgAAAD+/xYAAAAKAAkAAAD//xUAAAAKAAgAAAD//xYAAAAKAAkAAAA=")
tile_set = ExtResource("5_bsah1")
metadata/_edit_lock_ = true

[node name="Props" type="TileMapLayer" parent="Tilemaps"]
tile_set = ExtResource("5_bsah1")
metadata/_edit_lock_ = true

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

[node name="ActorEnemyTest" parent="Tilemaps/Actors" instance=ExtResource("12_8mkvw")]
position = Vector2(258, 364)

[node name="HorizontalForceField" parent="Tilemaps/Actors" instance=ExtResource("8_5cbgu")]
position = Vector2(15, 304)

[node name="BulletEmitter" parent="Tilemaps/Actors" instance=ExtResource("9_tniww")]
position = Vector2(-17, 411)
BulletResource = ExtResource("10_gkpxd")

[node name="ActorEnemyTest2" parent="Tilemaps/Actors" node_paths=PackedStringArray("DefeatScript") instance=ExtResource("8_vi7eu")]
position = Vector2(8, 410)
DefeatScript = NodePath("../HorizontalForceField")

[node name="ControlPad" parent="Tilemaps/Actors" node_paths=PackedStringArray("Target") instance=ExtResource("16_ijcqi")]
position = Vector2(55, 368)
Target = NodePath("../BulletEmitter")

[node name="AlarmBox" parent="Tilemaps/Actors" instance=ExtResource("14_pr50u")]
position = Vector2(68, 243)

[node name="AlarmBox2" parent="Tilemaps/Actors" instance=ExtResource("15_a8c3x")]
position = Vector2(68, 231)

[node name="Teleporter" parent="Tilemaps/Actors" instance=ExtResource("16_5qis2")]
position = Vector2(151, 311)
metadata/_edit_group_ = true

[node name="Spawner" type="Node2D" parent="Tilemaps/Actors/Teleporter" node_paths=PackedStringArray("Teleporter")]
script = ExtResource("17_7pavy")
Teleporter = NodePath("..")
ActivationRange = 100.0
ActorPrefab = ExtResource("8_vi7eu")

[node name="Teleporter2" parent="Tilemaps/Actors" instance=ExtResource("16_5qis2")]
position = Vector2(-59, 279)
metadata/_edit_group_ = true

[node name="Spawner" type="Node2D" parent="Tilemaps/Actors/Teleporter2" node_paths=PackedStringArray("Teleporter")]
script = ExtResource("17_7pavy")
Teleporter = NodePath("..")
ActivationRange = 100.0
ActorPrefab = ExtResource("8_vi7eu")

[node name="Teleporter3" parent="Tilemaps/Actors" instance=ExtResource("16_5qis2")]
position = Vector2(72, 391)
metadata/_edit_group_ = true

[node name="Spawner" type="Node2D" parent="Tilemaps/Actors/Teleporter3" node_paths=PackedStringArray("Teleporter")]
script = ExtResource("17_7pavy")
Teleporter = NodePath("..")
ActivationRange = 100.0
ActorPrefab = ExtResource("8_vi7eu")

[node name="ControlPad2" parent="Tilemaps/Actors" node_paths=PackedStringArray("Target") instance=ExtResource("16_ijcqi")]
position = Vector2(97, 244)
Target = NodePath("Script")

[node name="Script" type="Node2D" parent="Tilemaps/Actors/ControlPad2"]
script = ExtResource("17_wpn2u")
Events = Array[ExtResource("18_4t2j0")]([SubResource("Resource_0a8l3")])

[node name="Label" type="Label" parent="Tilemaps/Actors/ControlPad2"]
offset_left = -7.0
offset_top = -13.0
offset_right = 42.0
offset_bottom = -2.0
text = "Activate Alarm"
label_settings = ExtResource("19_1ywt4")

[node name="ControlPad3" parent="Tilemaps/Actors" node_paths=PackedStringArray("Target") instance=ExtResource("16_ijcqi")]
position = Vector2(148, 244)
Target = NodePath("../Teleporter/Spawner")

[node name="Label" type="Label" parent="Tilemaps/Actors/ControlPad3"]
offset_right = 40.0
offset_bottom = 23.0
text = "Manual
Spawn"
label_settings = ExtResource("19_1ywt4")

[node name="CameraController" type="Camera2D" parent="."]
process_mode = 1
script = ExtResource("7_4a7df")
pixel_snap = false

[node name="ReferenceRect" type="ReferenceRect" parent="."]
visible = false
offset_left = -38.0
offset_top = -39.0
offset_right = 124.0
offset_bottom = 44.0

[node name="InventoryManager" type="Node2D" parent="."]
script = ExtResource("8_scbgd")

[node name="HUD" parent="." instance=ExtResource("9_xs7rn")]

[node name="CameraTarget" type="Node2D" parent="."]
position = Vector2(115, 328)
script = ExtResource("10_86lpq")

[node name="PlayerStartPosition" type="Marker2D" parent="."]
position = Vector2(111, 305)

[node name="AlarmManager" type="Node2D" parent="."]
process_mode = 1
script = ExtResource("11_njjjf")
