Re-add factory music

This commit is contained in:
karl 2020-01-28 18:20:36 +01:00
parent 02803ec9fb
commit 6a49d7ea5e

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=33 format=2] [gd_scene load_steps=36 format=2]
[ext_resource path="res://Level/Interactables/Key/Key.tscn" type="PackedScene" id=1] [ext_resource path="res://Level/Interactables/Key/Key.tscn" type="PackedScene" id=1]
[ext_resource path="res://Level/Interactables/Keycard/Keycard2.tscn" type="PackedScene" id=2] [ext_resource path="res://Level/Interactables/Keycard/Keycard2.tscn" type="PackedScene" id=2]
@ -17,6 +17,9 @@
[ext_resource path="res://Level/Interactables/Pipes/StraightForkPipe.tscn" type="PackedScene" id=15] [ext_resource path="res://Level/Interactables/Pipes/StraightForkPipe.tscn" type="PackedScene" id=15]
[ext_resource path="res://Characters/Player/Player.tscn" type="PackedScene" id=16] [ext_resource path="res://Characters/Player/Player.tscn" type="PackedScene" id=16]
[ext_resource path="res://Util/NodeGroupNotifier.tscn" type="PackedScene" id=17] [ext_resource path="res://Util/NodeGroupNotifier.tscn" type="PackedScene" id=17]
[ext_resource path="res://Level/FactoryMusicHandler.gd" type="Script" id=18]
[ext_resource path="res://Resources/Audio/FactoryMusic/inactive.wav" type="AudioStream" id=19]
[ext_resource path="res://Resources/Audio/FactoryMusic/active.wav" type="AudioStream" id=20]
[sub_resource type="Curve3D" id=1] [sub_resource type="Curve3D" id=1]
_data = { _data = {
@ -68,6 +71,7 @@ rings = 1
[node name="InFactory" type="Navigation"] [node name="InFactory" type="Navigation"]
[node name="KeysCards" type="Spatial" parent="."] [node name="KeysCards" type="Spatial" parent="."]
editor/display_folded = true
[node name="Key" parent="KeysCards" instance=ExtResource( 1 )] [node name="Key" parent="KeysCards" instance=ExtResource( 1 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 27.7316, 1, -9.61762 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 27.7316, 1, -9.61762 )
@ -1730,6 +1734,16 @@ IsInFactory = true
group_name = "Navigator" group_name = "Navigator"
node_to_send = NodePath("..") node_to_send = NodePath("..")
[node name="FactoryMusicHandler" type="Node" parent="."]
script = ExtResource( 18 )
path_to_pipegame = NodePath("../Architecture/FactoryRoomInterior/PipeGame")
[node name="InactiveMusic" type="AudioStreamPlayer" parent="FactoryMusicHandler"]
stream = ExtResource( 19 )
[node name="ActiveMusic" type="AudioStreamPlayer" parent="FactoryMusicHandler"]
stream = ExtResource( 20 )
[editable path="Architecture/FactoryRoomWalls/BackWallTrue/Door"] [editable path="Architecture/FactoryRoomWalls/BackWallTrue/Door"]
[editable path="Architecture/FactoryRoomInterior/KeyThing/Key"] [editable path="Architecture/FactoryRoomInterior/KeyThing/Key"]