[gd_scene load_steps=23 format=4 uid="uid://bitld8jkjkflo"]

[ext_resource type="Script" uid="uid://doxmbokehw8ci" path="res://Scripts/GameManager.cs" id="1_5vq8r"]
[ext_resource type="PackedScene" uid="uid://c4pr2707hbeph" path="res://Scenes/Actors/fsm_player.tscn" id="2_hw6hf"]
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="5_y4jv8"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="6_b3f46"]
[ext_resource type="Script" uid="uid://o7euvh7co21t" path="res://Scripts/Actors/BossSpawner.cs" id="6_t0f5c"]
[ext_resource type="PackedScene" uid="uid://d1rlw6ddpmrn8" path="res://Scenes/Actors/Rumia.tscn" id="7_27s7d"]
[ext_resource type="Script" uid="uid://cfya7sndh7vy2" path="res://Scenes/CameraController.gd" id="7_e816t"]
[ext_resource type="PackedScene" uid="uid://bwlstkdibs7oc" path="res://Scenes/HUD/BossHud.tscn" id="7_grrkd"]
[ext_resource type="PackedScene" uid="uid://crph24e6e0v0q" path="res://Scenes/Interactable/Control_Pad.tscn" id="8_6qpgj"]
[ext_resource type="Script" uid="uid://c5nxsq3tyxcx6" path="res://Scripts/InventoryManager.cs" id="8_t0f5c"]
[ext_resource type="Script" uid="uid://cdd6q2h0t1hhq" path="res://Scripts/Resources/BossPhase.cs" id="8_uktdb"]
[ext_resource type="PackedScene" uid="uid://dkwi1hu1bixoe" path="res://Scenes/HUD/HUD.tscn" id="9_grrkd"]
[ext_resource type="Resource" uid="uid://ccj0cqbveey8c" path="res://Resources/BossPhases/Rumia_SP1.tres" id="9_wr8yc"]
[ext_resource type="Texture2D" uid="uid://begjak1f47840" path="res://Sprites/Expression/Rumia/Rumia05_resized.png" id="10_1mcdj"]
[ext_resource type="Script" uid="uid://bdshph801ac2i" path="res://Scenes/CameraTarget.gd" id="10_uktdb"]
[ext_resource type="Script" uid="uid://inasa76li3ym" path="res://Scripts/Resources/ScriptableBullets/BossScript.cs" id="11_vcaqw"]
[ext_resource type="Script" uid="uid://cnkipcolyj61w" path="res://Scripts/AlarmManager.cs" id="11_wr8yc"]
[ext_resource type="PackedScene" uid="uid://b3tyacxxw88lx" path="res://Scenes/Utils/StreamPlayerWithName.tscn" id="12_1mcdj"]
[ext_resource type="Resource" uid="uid://da1vjfavqs7u2" path="res://Resources/BossPhases/Marisa/marisa_ns1.tres" id="16_vcaqw"]
[ext_resource type="LabelSettings" uid="uid://buk3e7bbwmnv1" path="res://Resources/Styles/Hud_Text_Style.tres" id="17_1mcdj"]

[sub_resource type="Resource" id="Resource_cfs7m"]
script = ExtResource("11_vcaqw")
BossName = &"Rumia"
Phases = Array[ExtResource("8_uktdb")]([ExtResource("9_wr8yc")])
PortraitTexture = ExtResource("10_1mcdj")
HudPrefab = ExtResource("7_grrkd")
metadata/_custom_type_script = "uid://inasa76li3ym"

[sub_resource type="Resource" id="Resource_4ge3h"]
script = ExtResource("11_vcaqw")
BossName = &"Rumia"
Phases = Array[ExtResource("8_uktdb")]([ExtResource("16_vcaqw")])
PortraitTexture = ExtResource("10_1mcdj")
HudPrefab = ExtResource("7_grrkd")
metadata/_custom_type_script = "uid://inasa76li3ym"

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

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

[node name="Floor" type="TileMapLayer" parent="Tilemaps" node_paths=PackedStringArray("_solidLayers") groups=["Solid"]]
tile_map_data = PackedByteArray("AAAEABAAAAAEAAIAAAAEABEAAAAEAAAAAAAEABIAAAAEAAAAAAAEABMAAAAEAAAAAAAEABQAAAAEAAAAAAAEABUAAAAEAAAAAAAEABYAAAAEAAAAAAAFABAAAAAEAAIAAAAFABEAAAAEAAAAAAAFABIAAAAEAAAAAAAFABMAAAAEAAAAAAAFABQAAAAEAAAAAAA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AAAMABMAAAAEAAIAAAAMABQAAAAEAAIAAAAMABUAAAAEAAIAAAAMABYAAAAEAAIAAAAMABcAAAAEAAIAAAAMABgAAAAEAAIAAAAMABoAAAAEAAAAAAAMABsAAAAEAAAAAAANABAAAAAEAAAAAAANABEAAAAEAAAAAAANABIAAAAEAAAAAAANABMAAAAEAAAAAAANABQAAAAEAAAAAAANABUAAAAEAAAAAAANABYAAAAEAAAAAAANABcAAAAEAAAAAAANABgAAAAEAAAAAAANABkAAAAEAAAAAAANABsAAAAEAAAAAAAOABAAAAAEAAAAAAAOABEAAAAEAAAAAAAOABIAAAAEAAAAAAAOABMAAAAEAAAAAAAOABQAAAAEAAAAAAAOABUAAAAEAAAAAAAOABYAAAAEAAAAAAAOABcAAAAEAAAAAAAOABgAAAAEAAAAAAAOABkAAAAEAAAAAAAPABAAAAAEAAAAAAAPABEAAAAEAAAAAAAPABIAAAAEAAAAAAAPABMAAAAEAAAAAAAPABQAAAAEAAAAAAAPABUAAAAEAAAAAAAPABYAAAAEAAAAAAAPABcAAAAEAAAAAAAPABgAAAAEAAAAAAAPABkAAAAEAAAAAAAPABoAAAAEAAAAAAA=")
tile_set = ExtResource("5_y4jv8")
script = ExtResource("6_b3f46")
_solidLayers = [NodePath("../Solid"), NodePath("../Props")]
metadata/_edit_lock_ = true

[node name="Solid" type="TileMapLayer" parent="Tilemaps" groups=["Solid"]]
tile_map_data = PackedByteArray("[encoded data, 10484 characters]")
tile_set = ExtResource("5_y4jv8")
metadata/_edit_lock_ = true

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

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

[node name="RumiaSpawnerSP1" type="Node2D" parent="Tilemaps/Actors"]
position = Vector2(127, 304)
script = ExtResource("6_t0f5c")
BossScript = SubResource("Resource_cfs7m")
ActorPrefab = ExtResource("7_27s7d")

[node name="RumiaSpawnerNS1" type="Node2D" parent="Tilemaps/Actors"]
position = Vector2(127, 304)
script = ExtResource("6_t0f5c")
BossScript = SubResource("Resource_4ge3h")
ActorPrefab = ExtResource("7_27s7d")

[node name="Sp1Activator" parent="Tilemaps/Actors" node_paths=PackedStringArray("Target") instance=ExtResource("8_6qpgj")]
position = Vector2(85, 424)
Target = NodePath("../RumiaSpawnerSP1")
metadata/_edit_group_ = true

[node name="Label" type="Label" parent="Tilemaps/Actors/Sp1Activator"]
offset_left = -7.0
offset_top = 1.0
offset_right = 33.0
offset_bottom = 24.0
text = "Sp1"
label_settings = ExtResource("17_1mcdj")

[node name="NS1" parent="Tilemaps/Actors" node_paths=PackedStringArray("Target") instance=ExtResource("8_6qpgj")]
position = Vector2(105, 425)
Target = NodePath("../RumiaSpawnerNS1")
metadata/_edit_group_ = true

[node name="Label" type="Label" parent="Tilemaps/Actors/NS1"]
offset_left = -7.0
offset_top = 1.0
offset_right = 33.0
offset_bottom = 24.0
text = "NS1
"
label_settings = ExtResource("17_1mcdj")

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

[node name="CameraController" type="Camera2D" parent="."]
process_mode = 1
script = ExtResource("7_e816t")
pixel_snap = false
enable_smoothing = 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_t0f5c")

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

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

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

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

[node name="AudioStreamPlayer2D" parent="." instance=ExtResource("12_1mcdj")]
process_mode = 3
autoplay = true
