diff --git a/game/Assets/Prefabs/Environment/Spaceship.prefab b/game/Assets/Prefabs/Environment/Spaceship.prefab
index 62eebd6..347bf62 100644
--- a/game/Assets/Prefabs/Environment/Spaceship.prefab
+++ b/game/Assets/Prefabs/Environment/Spaceship.prefab
@@ -9,6 +9,7 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 2149313816374391533}
+ - component: {fileID: 7084265813298723182}
m_Layer: 0
m_Name: Spaceship
m_TagString: Untagged
@@ -27,12 +28,41 @@ Transform:
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
+ - {fileID: 5674898676600736608}
- {fileID: 1058519434748199728}
- {fileID: 1415153319340462780}
- {fileID: 9128309678831441048}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+--- !u!114 &7084265813298723182
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 95522237055879689}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 0a5de09a27d949d4db67034f55c57e6b, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ _event: {fileID: 11400000, guid: f2cb97270d3bf9044b01dcac28561a9b, type: 2}
+ _response:
+ m_PersistentCalls:
+ m_Calls:
+ - m_Target: {fileID: 4637354912713458198}
+ m_TargetAssemblyTypeName: UnityEngine.Behaviour, UnityEngine
+ m_MethodName: set_enabled
+ m_Mode: 6
+ m_Arguments:
+ m_ObjectArgument: {fileID: 0}
+ m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
+ m_IntArgument: 0
+ m_FloatArgument: 0
+ m_StringArgument:
+ m_BoolArgument: 1
+ m_CallState: 2
--- !u!1 &1985622944643914252
GameObject:
m_ObjectHideFlags: 0
@@ -62,7 +92,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 2149313816374391533}
- m_RootOrder: 1
+ m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!108 &6893796934365725642
Light:
@@ -126,6 +156,50 @@ Light:
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
m_ShadowAngle: 0
+--- !u!1 &2489985002885398785
+GameObject:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ serializedVersion: 6
+ m_Component:
+ - component: {fileID: 5674898676600736608}
+ - component: {fileID: 4637354912713458198}
+ m_Layer: 0
+ m_Name: Sounds
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!4 &5674898676600736608
+Transform:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 2489985002885398785}
+ m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+ m_LocalPosition: {x: -0.539, y: 2.968, z: 2.793}
+ m_LocalScale: {x: 1, y: 1, z: 1}
+ m_Children: []
+ m_Father: {fileID: 2149313816374391533}
+ m_RootOrder: 0
+ m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+--- !u!114 &4637354912713458198
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 2489985002885398785}
+ m_Enabled: 0
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: 15c92baf151fbfa468ee0ba97f2197d9, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ _sfx: event:/VO/FuckedUpSpeech
--- !u!1 &2599927563873625031
GameObject:
m_ObjectHideFlags: 0
@@ -251,7 +325,7 @@ Transform:
m_Children:
- {fileID: 3270264341662508133}
m_Father: {fileID: 2149313816374391533}
- m_RootOrder: 2
+ m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &664884216927806683
PrefabInstance:
@@ -262,7 +336,7 @@ PrefabInstance:
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 78571f1c817068a448bf7da85e8ef9b3, type: 3}
propertyPath: m_RootOrder
- value: 0
+ value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 78571f1c817068a448bf7da85e8ef9b3, type: 3}
propertyPath: m_LocalScale.x
diff --git a/game/Assets/Prefabs/Player.prefab b/game/Assets/Prefabs/Player.prefab
index 79dad97..e01856c 100644
--- a/game/Assets/Prefabs/Player.prefab
+++ b/game/Assets/Prefabs/Player.prefab
@@ -174,6 +174,7 @@ MonoBehaviour:
_dialogueSystem: {fileID: 11400000, guid: 56369c4e83cc59e44bf55cd16fafc4e8, type: 2}
_freezeFirstUseDialogueKey: SD_FREEZE_0
_freezeVfx: {fileID: 0}
+ _jumpSfx: event:/Character/Jump
_freezeSfx: event:/Character/Freeze
_blinkSfx: event:/Character/Dash
_boostSfx: event:/Character/Jump
diff --git a/game/Assets/Scripts/Audio/LoopySound.cs b/game/Assets/Scripts/Audio/LoopySound.cs
new file mode 100644
index 0000000..81431a7
--- /dev/null
+++ b/game/Assets/Scripts/Audio/LoopySound.cs
@@ -0,0 +1,33 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Diagnostics.Tracing;
+using FMOD.Studio;
+using FMODUnity;
+using UnityEngine;
+using STOP_MODE = FMOD.Studio.STOP_MODE;
+
+public class LoopySound : MonoBehaviour
+{
+ [SerializeField]
+ [EventRef]
+ private string _sfx;
+
+ private EventInstance _sfxInstance;
+
+ void Awake()
+ {
+ _sfxInstance = RuntimeManager.CreateInstance( _sfx );
+ RuntimeManager.AttachInstanceToGameObject( _sfxInstance, transform, (Rigidbody)null );
+ }
+
+ private void OnEnable()
+ {
+ _sfxInstance.start();
+ }
+
+ private void OnDisable()
+ {
+ _sfxInstance.stop(STOP_MODE.IMMEDIATE);
+ }
+}
diff --git a/game/Assets/Scripts/Audio/LoopySound.cs.meta b/game/Assets/Scripts/Audio/LoopySound.cs.meta
new file mode 100644
index 0000000..261f2ef
--- /dev/null
+++ b/game/Assets/Scripts/Audio/LoopySound.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 15c92baf151fbfa468ee0ba97f2197d9
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/game/Assets/Scripts/Player/PlayerController.cs b/game/Assets/Scripts/Player/PlayerController.cs
index e68ac16..fde9a1a 100644
--- a/game/Assets/Scripts/Player/PlayerController.cs
+++ b/game/Assets/Scripts/Player/PlayerController.cs
@@ -96,6 +96,11 @@ public class PlayerController : MonoBehaviour
[SerializeField]
private GameObject _freezeVfx;
+ [SerializeField]
+ [FMODUnity.EventRef]
+ private string _jumpSfx;
+ private EventInstance _jumpInstance;
+
[SerializeField]
[FMODUnity.EventRef]
private string _freezeSfx;
@@ -127,6 +132,7 @@ public class PlayerController : MonoBehaviour
{
_freezeVfx.SetActive( false );
+ _jumpInstance = RuntimeManager.CreateInstance( _jumpSfx );
_freezeInstance = RuntimeManager.CreateInstance( _freezeSfx );
_blinkInstance = RuntimeManager.CreateInstance( _blinkSfx );
_boostInstance = RuntimeManager.CreateInstance( _boostSfx );
@@ -134,7 +140,7 @@ public class PlayerController : MonoBehaviour
private void PlayPlayerSFX( EventInstance instance )
{
- instance.stop(STOP_MODE.IMMEDIATE);
+ instance.stop(STOP_MODE.ALLOWFADEOUT);
instance.start();
RuntimeManager.AttachInstanceToGameObject( instance, transform, (Rigidbody)null );
}
@@ -255,6 +261,8 @@ public class PlayerController : MonoBehaviour
_jumpState = JumpState.Jump;
_yVelocity = Mathf.Sqrt( 2f * _movementSettings.JumpHeight * _movementSettings.UpGravity );
+ PlayPlayerSFX( _jumpInstance );
+
// always make sure we can blink once per jump
_powers.Blink.Reset();
}
diff --git a/game/Assets/Scripts/Traps/ArrowWall.cs b/game/Assets/Scripts/Traps/ArrowWall.cs
index b71da27..fde933d 100644
--- a/game/Assets/Scripts/Traps/ArrowWall.cs
+++ b/game/Assets/Scripts/Traps/ArrowWall.cs
@@ -35,7 +35,7 @@ public class ArrowWall : MonoBehaviour
if (elapsed > _delay && objectTimeScale!=0)
{
// TODO: arrow whoosh noises
- FMODUnity.RuntimeManager.PlayOneShot(_settings.ArrowWall.FMODEvent);
+ FMODUnity.RuntimeManager.PlayOneShot(_settings.ArrowWall.FMODEvent, transform.position);
_particles.Play();
diff --git a/game/Assets/Scripts/Traps/FallawayFloor.cs b/game/Assets/Scripts/Traps/FallawayFloor.cs
index 89c294f..6941bd3 100644
--- a/game/Assets/Scripts/Traps/FallawayFloor.cs
+++ b/game/Assets/Scripts/Traps/FallawayFloor.cs
@@ -87,7 +87,7 @@ public class FallawayFloor : MonoBehaviour
// var shake = _graphics.transform.DOShakePosition(
// fallAwayTime,
// _settings.FallawayFloor.ShakeStrength);
- FMODUnity.RuntimeManager.PlayOneShot(_settings.FallawayFloor.FMODEvent);
+ FMODUnity.RuntimeManager.PlayOneShot(_settings.FallawayFloor.FMODEvent, transform.position );
if (_graphics.TryGetComponent(out BoxCollider box)) box.enabled = false;
diff --git a/game/Assets/Scripts/Traps/RollingBoulder.cs b/game/Assets/Scripts/Traps/RollingBoulder.cs
index 53e6ce0..aa28501 100644
--- a/game/Assets/Scripts/Traps/RollingBoulder.cs
+++ b/game/Assets/Scripts/Traps/RollingBoulder.cs
@@ -1,8 +1,12 @@
using Ktyl.Util;
using System.Collections;
+using FMOD.Studio;
+using FMODUnity;
using PathCreation;
using UnityEngine;
using UnityEngine.Serialization;
+using UnityEngine.UIElements;
+using STOP_MODE = FMOD.Studio.STOP_MODE;
#if UNITY_EDITOR
using UnityEditor;
#endif
@@ -22,6 +26,13 @@ public class RollingBoulder : MonoBehaviour
private bool _triggered = false;
private bool _stopped;
+ private EventInstance _fmodEvent;
+
+ void Start()
+ {
+ _fmodEvent = RuntimeManager.CreateInstance( _fmodKey );
+ RuntimeManager.AttachInstanceToGameObject( _fmodEvent, boulderMove.transform, (Rigidbody)null );
+ }
private void Update()
{
@@ -47,7 +58,7 @@ public class RollingBoulder : MonoBehaviour
{
if (_triggered) return;
- FMODUnity.RuntimeManager.PlayOneShot(_fmodKey);
+ _fmodEvent.start();
StartCoroutine(RollingStone());
}
@@ -93,6 +104,7 @@ public class RollingBoulder : MonoBehaviour
_triggered = false;
_killbox.enabled = true;
_stopped = false;
+ _fmodEvent.stop( STOP_MODE.IMMEDIATE );
}
}
diff --git a/game/FMOD Project/Assets/CaiStuff/Enviroment/Place.mp3 b/game/FMOD Project/Assets/CaiStuff/Enviroment/Place.mp3
new file mode 100644
index 0000000..c96024c
--- /dev/null
+++ b/game/FMOD Project/Assets/CaiStuff/Enviroment/Place.mp3
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:595565a8f42bef540dbdf593afaca85b5dae6a80c009a6750f7d2f3d1fc47166
+size 22224
diff --git a/game/FMOD Project/Assets/VO/English/so_much_pain_fixed.mp3 b/game/FMOD Project/Assets/VO/English/so_much_pain_fixed.mp3
new file mode 100644
index 0000000..0969262
--- /dev/null
+++ b/game/FMOD Project/Assets/VO/English/so_much_pain_fixed.mp3
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a0c635ad37a4255146457ab3e1a9c99474dc45c74ee6b5bc506079fc017c388b
+size 679362
diff --git a/game/FMOD Project/Build/Desktop/Master.strings.bank b/game/FMOD Project/Build/Desktop/Master.strings.bank
index 3fa1e22..0e62e60 100644
--- a/game/FMOD Project/Build/Desktop/Master.strings.bank
+++ b/game/FMOD Project/Build/Desktop/Master.strings.bank
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:f7e1cbd22144c6840145e48e034836b37cc2a0b863b77c536084fdecc6f0f76c
-size 2566
+oid sha256:b9cf3c563d0b7a7663923b6f0a966404fabeee35da625fa95982f46f98d80b4e
+size 2612
diff --git a/game/FMOD Project/Build/Desktop/SFX.bank b/game/FMOD Project/Build/Desktop/SFX.bank
index 72fb24e..45335b8 100644
--- a/game/FMOD Project/Build/Desktop/SFX.bank
+++ b/game/FMOD Project/Build/Desktop/SFX.bank
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:1b3b3f495fb354144cfdca41f82fcad42d91515fb17321bdb911e110713a5320
-size 4169312
+oid sha256:c39ff3489a1a29374429a0fde9be9ba71dc530377657fb54f2e0ddca1b965246
+size 4170016
diff --git a/game/FMOD Project/Build/Desktop/VO.bank b/game/FMOD Project/Build/Desktop/VO.bank
index 2e27e7d..b9d87a3 100644
--- a/game/FMOD Project/Build/Desktop/VO.bank
+++ b/game/FMOD Project/Build/Desktop/VO.bank
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:c36c5658dbe443f0e036b758a8ceb971072ff7eec385f8a7f7fd6ee25884db97
-size 2946016
+oid sha256:2b1524c6c89555f5a7650aae7e2ac20d78c110c2fa16f247cb0126679333c031
+size 3231424
diff --git a/game/FMOD Project/Metadata/AudioFile/{22b542f4-f999-4aaf-ad1d-2b9ab1436c43}.xml b/game/FMOD Project/Metadata/AudioFile/{22b542f4-f999-4aaf-ad1d-2b9ab1436c43}.xml
new file mode 100644
index 0000000..c5d8ca5
--- /dev/null
+++ b/game/FMOD Project/Metadata/AudioFile/{22b542f4-f999-4aaf-ad1d-2b9ab1436c43}.xml
@@ -0,0 +1,23 @@
+
+
+
+
diff --git a/game/FMOD Project/Metadata/Event/{14adad4f-74ed-4fc6-9b58-0cfbce4572f8}.xml b/game/FMOD Project/Metadata/Event/{14adad4f-74ed-4fc6-9b58-0cfbce4572f8}.xml
index 358c689..d41009f 100644
--- a/game/FMOD Project/Metadata/Event/{14adad4f-74ed-4fc6-9b58-0cfbce4572f8}.xml
+++ b/game/FMOD Project/Metadata/Event/{14adad4f-74ed-4fc6-9b58-0cfbce4572f8}.xml
@@ -72,6 +72,9 @@
-
+
+
+ 8.5
+
{52bdf8e2-77c5-4c00-bd2c-adc125cfa393}
diff --git a/game/FMOD Project/Metadata/Event/{d5ba71b3-85bc-4648-90ae-3a03a08cdefe}.xml b/game/FMOD Project/Metadata/Event/{d5ba71b3-85bc-4648-90ae-3a03a08cdefe}.xml
index 13d94ea..811746f 100644
--- a/game/FMOD Project/Metadata/Event/{d5ba71b3-85bc-4648-90ae-3a03a08cdefe}.xml
+++ b/game/FMOD Project/Metadata/Event/{d5ba71b3-85bc-4648-90ae-3a03a08cdefe}.xml
@@ -72,6 +72,9 @@
+
+ -8.5
+
{cf49e2c5-ce0c-469a-bb85-33f178ce9b0b}