[gd_scene load_steps=12 format=4 uid="uid://8ppagfume46d"]

[ext_resource type="Script" uid="uid://doxmbokehw8ci" path="res://Scripts/GameManager.cs" id="1_hx5ph"]
[ext_resource type="PackedScene" uid="uid://c4pr2707hbeph" path="res://Scenes/Actors/fsm_player.tscn" id="2_r7f28"]
[ext_resource type="Resource" uid="uid://b6per1p85bqpn" path="res://Resources/Maps/Level4.tres" id="2_wvpxs"]
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="5_e10oj"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="6_4t7ma"]
[ext_resource type="Script" uid="uid://upq0b4sx7nhw" path="res://Scripts/Misc/CameraTarget.cs" id="8_dty0c"]
[ext_resource type="Script" uid="uid://c5nxsq3tyxcx6" path="res://Scripts/InventoryManager.cs" id="10_crp0b"]
[ext_resource type="PackedScene" uid="uid://dkwi1hu1bixoe" path="res://Scenes/HUD/HUD.tscn" id="11_c2rdv"]
[ext_resource type="PackedScene" uid="uid://bmif3jo03yuol" path="res://Scenes/camera_controller.tscn" id="11_wvpxs"]
[ext_resource type="Script" uid="uid://cnkipcolyj61w" path="res://Scripts/AlarmManager.cs" id="13_lxaeu"]
[ext_resource type="PackedScene" uid="uid://b3tyacxxw88lx" path="res://Scenes/Utils/StreamPlayerWithName.tscn" id="14_x7uby"]

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

[node name="Parallax2D" type="Parallax2D" parent="."]

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

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

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

[node name="Props" type="TileMapLayer" parent="Parallax2D/Tilemaps"]
tile_map_data = PackedByteArray("AAAHABMAAAANAAgAAAAHABQAAAANAAkAAAAIABMAAAAOAAgAAAAIABQAAAAOAAkAAAA=")
tile_set = ExtResource("5_e10oj")
metadata/_edit_lock_ = true

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

[node name="Parallax2D2" type="Parallax2D" parent="."]
scroll_scale = Vector2(0.8, 0.8)
scroll_offset = Vector2(0.4, 0.4)

[node name="Space" type="TileMapLayer" parent="Parallax2D2"]
z_index = -1
tile_map_data = PackedByteArray("[encoded data, 38276 characters]")
tile_set = ExtResource("5_e10oj")

[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("10_crp0b")

[node name="HUD" parent="." instance=ExtResource("11_c2rdv")]

[node name="CameraController" parent="." instance=ExtResource("11_wvpxs")]

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

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

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

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