[gd_scene load_steps=27 format=2]

[ext_resource path="res://scenes/player.tscn" type="PackedScene" id=1]
[ext_resource path="res://scripts/dof_focus.gd" type="Script" id=2]
[ext_resource path="res://scenes/power_station.tscn" type="PackedScene" id=3]
[ext_resource path="res://scenes/crafting_station.tscn" type="PackedScene" id=4]
[ext_resource path="res://scenes/item_generator.tscn" type="PackedScene" id=5]
[ext_resource path="res://item_types/ore.tres" type="Resource" id=6]
[ext_resource path="res://recipes/all_recipes.tres" type="Resource" id=7]
[ext_resource path="res://scenes/camera_room.tscn" type="PackedScene" id=8]
[ext_resource path="res://scripts/tracking_camera.gd" type="Script" id=9]
[ext_resource path="res://scripts/cameras.gd" type="Script" id=10]
[ext_resource path="res://scripts/camera_room.gd" type="Script" id=11]
[ext_resource path="res://scenes/dinner_table.tscn" type="PackedScene" id=12]
[ext_resource path="res://scenes/hydroponics_station.tscn" type="PackedScene" id=13]
[ext_resource path="res://scenes/oven.tscn" type="PackedScene" id=14]
[ext_resource path="res://scenes/game_manager.tscn" type="PackedScene" id=15]
[ext_resource path="res://scenes/cheat_menu.tscn" type="PackedScene" id=16]
[ext_resource path="res://scenes/item_holder.tscn" type="PackedScene" id=17]
[ext_resource path="res://scenes/comm_station.tscn" type="PackedScene" id=18]
[ext_resource path="res://assets/level/Level.tscn" type="PackedScene" id=19]
[ext_resource path="res://scenes/bed.tscn" type="PackedScene" id=20]

[sub_resource type="CylinderShape" id=8]
height = 5.22615
radius = 12.052

[sub_resource type="BoxShape" id=9]
extents = Vector3( 1.78436, 2.33105, 6.04815 )

[sub_resource type="Animation" id=10]
length = 0.001
tracks/0/type = "value"
tracks/0/path = NodePath(".:camera_lerp")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ 0.0 ]
}

[sub_resource type="Animation" id=11]
length = 0.3
tracks/0/type = "value"
tracks/0/path = NodePath(".:camera_lerp")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.3 ),
"transitions": PoolRealArray( -2, 1 ),
"update": 0,
"values": [ 0.0, 1.0 ]
}

[sub_resource type="ProceduralSky" id=7]
sky_top_color = Color( 0.486275, 0.486275, 0.486275, 1 )
sky_horizon_color = Color( 0.180392, 0.180392, 0.180392, 1 )
ground_bottom_color = Color( 0.545098, 0.545098, 0.545098, 1 )
ground_horizon_color = Color( 0.8, 0.8, 0.8, 1 )

[sub_resource type="Environment" id=12]
background_mode = 2
background_sky = SubResource( 7 )
ambient_light_sky_contribution = 0.5
tonemap_mode = 4
ssao_enabled = true
ssao_radius = 3.86
ssao_intensity = 0.69
dof_blur_far_enabled = true
dof_blur_far_amount = 0.15
dof_blur_near_enabled = true
dof_blur_near_amount = 0.15
adjustment_contrast = 1.97

[node name="dev_akshay" type="Spatial"]

[node name="Level" parent="." instance=ExtResource( 19 )]

[node name="cameras" type="Spatial" parent="."]
script = ExtResource( 10 )
target = NodePath("../Player")
camera_lerp = 0.0

[node name="main_camera" type="Camera" parent="cameras"]
current = true

[node name="camera_room_center" type="Spatial" parent="cameras"]
script = ExtResource( 11 )

[node name="camera" type="Camera" parent="cameras/camera_room_center"]
transform = Transform( -1, 7.57103e-08, -4.37114e-08, 0, 0.5, 0.866025, 8.74228e-08, 0.866025, -0.5, 0, 12, 0 )
script = ExtResource( 9 )
target = NodePath("../../../Player")

[node name="hitbox" type="Area" parent="cameras/camera_room_center"]
collision_layer = 16
collision_mask = 2

[node name="CollisionShape" type="CollisionShape" parent="cameras/camera_room_center/hitbox"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.52689, 0 )
shape = SubResource( 8 )

[node name="camera_galley" parent="cameras" instance=ExtResource( 8 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -16.3 )

[node name="camera_ore_conveyor" parent="cameras" instance=ExtResource( 8 )]
transform = Transform( 0.707107, 0, -0.707107, 0, 1, 0, 0.707107, 0, 0.707107, 11.526, 0, -11.526 )

[node name="camera_storage" parent="cameras" instance=ExtResource( 8 )]
transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 16.3, 0, 0 )

[node name="camera_crafting" parent="cameras" instance=ExtResource( 8 )]
transform = Transform( -0.707107, 0, -0.707107, 0, 1, 0, 0.707107, 0, -0.707107, 11.526, 0, 11.526 )

[node name="camera_room_hallway" type="Spatial" parent="cameras"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 16.3 )
script = ExtResource( 11 )

[node name="camera" type="Camera" parent="cameras/camera_room_hallway"]
transform = Transform( -4.37114e-08, 0.965926, -0.258819, 0, 0.258819, 0.965926, 1, 4.2222e-08, -1.13133e-08, -1.397, 10, -2.312 )

[node name="hitbox" type="Area" parent="cameras/camera_room_hallway"]
collision_layer = 16
collision_mask = 2

[node name="CollisionShape" type="CollisionShape" parent="cameras/camera_room_hallway/hitbox"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.52689, -1.44831 )
shape = SubResource( 9 )

[node name="camera_rover" parent="cameras" instance=ExtResource( 8 )]
transform = Transform( -0.707107, 0, 0.707107, 0, 1, 0, -0.707107, 0, -0.707107, -11.526, 0, 11.526 )

[node name="camera_comms" parent="cameras" instance=ExtResource( 8 )]
transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -16.3, 0, 0 )

[node name="camera_hydroponics" parent="cameras" instance=ExtResource( 8 )]
transform = Transform( 0.707106, 0, 0.707106, 0, 1, 0, -0.707106, 0, 0.707106, -11.526, 0, -11.526 )

[node name="AnimationPlayer" type="AnimationPlayer" parent="cameras"]
anims/RESET = SubResource( 10 )
anims/switch_camera = SubResource( 11 )

[node name="lights" type="Spatial" parent="."]

[node name="Hub1" type="OmniLight" parent="lights"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0224032, 4.20288, 4.77208 )
shadow_enabled = true
omni_range = 10.7698

[node name="Hub2" type="OmniLight" parent="lights"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0765934, 4.20288, -4.81973 )
shadow_enabled = true
omni_range = 10.7698

[node name="light_galley" type="OmniLight" parent="lights"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3.329, -16.3 )
shadow_enabled = true
omni_range = 5.893
omni_attenuation = 2.0

[node name="light_ore_conveyor" type="OmniLight" parent="lights"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 11.526, 3.329, -11.526 )
shadow_enabled = true
omni_range = 5.893
omni_attenuation = 2.0

[node name="light_storage" type="OmniLight" parent="lights"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 16.3, 3.329, 0 )
shadow_enabled = true
omni_range = 5.893
omni_attenuation = 2.0

[node name="light_crafting" type="OmniLight" parent="lights"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 11.526, 3.329, 11.526 )
shadow_enabled = true
omni_range = 5.893
omni_attenuation = 2.0

[node name="light_hallway" type="OmniLight" parent="lights"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3.329, 16.3 )
shadow_enabled = true
omni_range = 5.893
omni_attenuation = 2.0

[node name="light_rover" type="OmniLight" parent="lights"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -11.526, 3.329, 11.526 )
shadow_enabled = true
omni_range = 5.893
omni_attenuation = 2.0

[node name="light_comms" type="OmniLight" parent="lights"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -16.3, 3.329, 0 )
shadow_enabled = true
omni_range = 5.893
omni_attenuation = 2.0

[node name="light_hydroponics" type="OmniLight" parent="lights"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -11.526, 3.329, -11.526 )
shadow_enabled = true
omni_range = 5.893
omni_attenuation = 2.0

[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource( 12 )
script = ExtResource( 2 )
target = NodePath("../Player")
size = 4.0

[node name="Player" parent="." instance=ExtResource( 1 )]
transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 15.4653 )

[node name="power_station" parent="." instance=ExtResource( 3 )]
transform = Transform( 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 1, 0 )
time_to_generate = 5.0
current_holding = 1

[node name="Ore_Conveyor_Room" type="Spatial" parent="."]
transform = Transform( 0.734891, 0, -0.678185, 0, 1, 0, 0.678185, 0, 0.734891, 6.26237, 0, -5.87466 )

[node name="Room_Label" type="Label3D" parent="Ore_Conveyor_Room"]
transform = Transform( 4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 4.309, 0 )
modulate = Color( 0, 0, 0, 1 )
text = "Ore Conveyor"

[node name="item_generator" parent="Ore_Conveyor_Room" instance=ExtResource( 5 )]
transform = Transform( 1, 0, 3.27826e-07, 0, 1, 0, -3.27826e-07, 0, 1, -1.69954, 0, -7.67125 )
gen_item = ExtResource( 6 )
gen_time = 2.0

[node name="Machine_Label" type="Label3D" parent="Ore_Conveyor_Room/item_generator"]
transform = Transform( 3, 0, 0, 0, 3, 0, 0, 0, 3, 1.88, 3, -1.043 )
modulate = Color( 0, 0, 0, 1 )
text = "VNDG MACHINE"

[node name="Storage_Room" type="Spatial" parent="."]
transform = Transform( 0.0379867, 0, -0.999278, 0, 1, 0, 0.999278, 0, 0.0379867, 8.64656, 0, 0.323352 )

[node name="Room_Label" type="Label3D" parent="Storage_Room"]
transform = Transform( 4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 4.309, 0 )
modulate = Color( 0, 0, 0, 1 )
text = "Storage"

[node name="item_holder" parent="Storage_Room" instance=ExtResource( 17 )]
transform = Transform( 0.0379867, 0, 0.999278, 0, 1, 0, -0.999278, 0, 0.0379867, -0.0128546, 0, -8.17408 )

[node name="item_holder2" parent="Storage_Room" instance=ExtResource( 17 )]
transform = Transform( 0.0379867, 0, 0.999278, 0, 1, 0, -0.999278, 0, 0.0379867, -2.64011, 0, -8.27395 )

[node name="item_holder3" parent="Storage_Room" instance=ExtResource( 17 )]
transform = Transform( 0.0379867, 0, 0.999278, 0, 1, 0, -0.999278, 0, 0.0379867, 2.23318, 0, -8.0887 )

[node name="Crafting_Room" type="Spatial" parent="."]
transform = Transform( -0.668793, 0, -0.743448, 0, 1, 0, 0.743448, 0, -0.668793, 6.10625, 0, 6.11932 )

[node name="Room_Label" type="Label3D" parent="Crafting_Room"]
transform = Transform( 4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 4.309, 0 )
modulate = Color( 0, 0, 0, 1 )
text = "Crafting"

[node name="crafting_station" parent="Crafting_Room" instance=ExtResource( 4 )]
transform = Transform( -2.98023e-08, 0, -0.999999, 0, 1, 0, 0.999999, 0, -2.98023e-08, 1.01718, 0, -7.486 )
recipes = ExtResource( 7 )
gen_time = 2.0

[node name="Machine_Label" type="Label3D" parent="Crafting_Room/crafting_station"]
transform = Transform( -1.3411e-07, 0, 3, 0, 3, 0, -3, 0, -1.3411e-07, -1.295, 3, 1.998 )
modulate = Color( 0, 0, 0, 1 )
text = "TRANSFORMATRON"

[node name="Bed_Room" type="Spatial" parent="."]
transform = Transform( -0.999913, 0, 0.0131247, 0, 1, 0, -0.0131247, 0, -0.999913, -0.0536704, 0, 8.64287 )

[node name="Room_Label" type="Label3D" parent="Bed_Room"]
transform = Transform( 4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 4.309, 0 )
modulate = Color( 0, 0, 0, 1 )
text = "Snoozer"

[node name="bed_hop_position" type="Spatial" parent="Bed_Room"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.216576, 0, -8.63037 )

[node name="bed" parent="Bed_Room/bed_hop_position" instance=ExtResource( 20 )]

[node name="Galley_Room" type="Spatial" parent="."]
transform = Transform( 0.999685, 0, 0.0250777, 0, 1, 0, -0.0250777, 0, 0.999685, 0.13933, 0, -8.55076 )

[node name="Room_Label" type="Label3D" parent="Galley_Room"]
transform = Transform( 4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 4.309, 0 )
modulate = Color( 0, 0, 0, 1 )
text = "Galley"

[node name="dinner_table" parent="Galley_Room" instance=ExtResource( 12 )]
transform = Transform( 1, 0, -1.11759e-08, 0, 1, 0, 1.11759e-08, 0, 1, 1.77669, 0, -8.88646 )

[node name="oven" parent="Galley_Room" instance=ExtResource( 14 )]
transform = Transform( 1.00001, 0, 3.72529e-09, 0, 1, 0, -3.72529e-09, 0, 1.00001, -2.828, 0, -10.6561 )
start_broken = true

[node name="Hydroponics_Room" type="Spatial" parent="."]
transform = Transform( 0.690862, 0.000404371, 0.722986, -0.000832856, 1, 0.000236545, -0.722985, -0.000765563, 0.690862, -6.25959, -7.15916e-05, -5.86512 )

[node name="Room_Label" type="Label3D" parent="Hydroponics_Room"]
transform = Transform( 4, 0, 0, 0, 4, 2.32831e-10, 0, 0, 4, 0, 4.309, 0 )
modulate = Color( 0, 0, 0, 1 )
text = "Hydroponics"

[node name="hydroponics_station" parent="Hydroponics_Room" instance=ExtResource( 13 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.62981e-09, -7.671 )

[node name="hydroponics_station2" parent="Hydroponics_Room" instance=ExtResource( 13 )]
transform = Transform( 1, 0, 0, 0, 1, 5.82077e-11, 0, 0, 1, 1.96066, -2.56114e-09, -7.67101 )

[node name="hydroponics_station3" parent="Hydroponics_Room" instance=ExtResource( 13 )]
transform = Transform( 1, 0, 0, 0, 1, 5.82077e-11, 0, 0, 1, -1.9892, -3.0268e-09, -7.67101 )

[node name="Communications" type="Spatial" parent="."]
transform = Transform( -0.0426527, 0.000404372, 0.999089, -0.000747618, 1, -0.000436656, -0.999089, -0.000765564, -0.0426524, -8.66408, 0.00565405, 0.343818 )

[node name="Room_Label" type="Label3D" parent="Communications"]
transform = Transform( 4, 0, 0, 0, 4, 2.32831e-10, 0, 0, 4, 0, 4.309, 0 )
modulate = Color( 0, 0, 0, 1 )
text = "Communications"

[node name="comm_station" parent="Communications" instance=ExtResource( 18 )]
transform = Transform( 1, 3.49246e-10, -2.23517e-08, -3.49246e-10, 1, 1.60071e-10, 2.23517e-08, 1.78261e-10, 1, 0.664039, 5.58794e-09, -7.58252 )

[node name="game_manager" parent="." instance=ExtResource( 15 )]

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

[node name="cheat_menu" parent="CanvasLayer" instance=ExtResource( 16 )]

[connection signal="player_entered" from="cameras/camera_room_center" to="cameras" method="_on_camera_room_player_entered"]
[connection signal="player_exited" from="cameras/camera_room_center" to="cameras" method="_on_camera_room_player_exited"]
[connection signal="area_entered" from="cameras/camera_room_center/hitbox" to="cameras/camera_room_center" method="_on_hitbox_area_entered"]
[connection signal="area_exited" from="cameras/camera_room_center/hitbox" to="cameras/camera_room_center" method="_on_hitbox_area_exited"]
[connection signal="player_entered" from="cameras/camera_galley" to="cameras" method="_on_camera_room_player_entered"]
[connection signal="player_exited" from="cameras/camera_galley" to="cameras" method="_on_camera_room_player_exited"]
[connection signal="player_entered" from="cameras/camera_ore_conveyor" to="cameras" method="_on_camera_room_player_entered"]
[connection signal="player_exited" from="cameras/camera_ore_conveyor" to="cameras" method="_on_camera_room_player_exited"]
[connection signal="player_entered" from="cameras/camera_storage" to="cameras" method="_on_camera_room_player_entered"]
[connection signal="player_exited" from="cameras/camera_storage" to="cameras" method="_on_camera_room_player_exited"]
[connection signal="player_entered" from="cameras/camera_crafting" to="cameras" method="_on_camera_room_player_entered"]
[connection signal="player_exited" from="cameras/camera_crafting" to="cameras" method="_on_camera_room_player_exited"]
[connection signal="player_entered" from="cameras/camera_room_hallway" to="cameras" method="_on_camera_room_player_entered"]
[connection signal="player_exited" from="cameras/camera_room_hallway" to="cameras" method="_on_camera_room_player_exited"]
[connection signal="area_entered" from="cameras/camera_room_hallway/hitbox" to="cameras/camera_room_hallway" method="_on_hitbox_area_entered"]
[connection signal="area_exited" from="cameras/camera_room_hallway/hitbox" to="cameras/camera_room_hallway" method="_on_hitbox_area_exited"]
[connection signal="player_entered" from="cameras/camera_rover" to="cameras" method="_on_camera_room_player_entered"]
[connection signal="player_exited" from="cameras/camera_rover" to="cameras" method="_on_camera_room_player_exited"]
[connection signal="player_entered" from="cameras/camera_comms" to="cameras" method="_on_camera_room_player_entered"]
[connection signal="player_exited" from="cameras/camera_comms" to="cameras" method="_on_camera_room_player_exited"]
[connection signal="player_entered" from="cameras/camera_hydroponics" to="cameras" method="_on_camera_room_player_entered"]
[connection signal="player_exited" from="cameras/camera_hydroponics" to="cameras" method="_on_camera_room_player_exited"]
