Browse Source

Added audio

main
Jeff 2 years ago
parent
commit
180918b98f
12 changed files with 152 additions and 9 deletions
  1. BIN
      Assets/Art Assets/Sound/Ancient_Game_Deep_Dark_Dungeon_Ambience_Loop.wav
  2. +7
    -0
      Assets/Art Assets/Sound/Ancient_Game_Deep_Dark_Dungeon_Ambience_Loop.wav.meta
  3. BIN
      Assets/Art Assets/Sound/SFX/Postive_Game_Sound.wav
  4. +36
    -0
      Assets/Art Assets/Sound/SFX/Postive_Game_Sound.wav.meta
  5. BIN
      Assets/Art Assets/Sound/SFX/Spikes.wav
  6. +36
    -0
      Assets/Art Assets/Sound/SFX/Spikes.wav.meta
  7. BIN
      Assets/Art Assets/Sound/SFX/Subtle_Jump.wav
  8. +36
    -0
      Assets/Art Assets/Sound/SFX/Subtle_Jump.wav.meta
  9. BIN
      Assets/Scenes/Official Levels/Level 1.unity
  10. BIN
      Assets/Scenes/Official Levels/Level 2.unity
  11. BIN
      Assets/Scenes/Official Levels/Level 3.unity
  12. +19
    -3
      Assets/Scripts/Character/CharacterInputController.cs

BIN
Assets/Art Assets/Sound/Ancient_Game_Deep_Dark_Dungeon_Ambience_Loop.wav (Stored with Git LFS) View File

size 18853784

+ 7
- 0
Assets/Art Assets/Sound/Ancient_Game_Deep_Dark_Dungeon_Ambience_Loop.wav.meta View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 26b05661b72f11741a80e5126f2256f2
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Art Assets/Sound/SFX/Postive_Game_Sound.wav (Stored with Git LFS) View File

size 263522

+ 36
- 0
Assets/Art Assets/Sound/SFX/Postive_Game_Sound.wav.meta View File

@ -0,0 +1,36 @@
fileFormatVersion: 2
guid: 25300bf305e2f6e49a92b4a22d34ad6b
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 0
quality: 1
conversionMode: 0
platformSettingOverrides:
4:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 3
quality: 1
conversionMode: 0
7:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Art Assets/Sound/SFX/Spikes.wav (Stored with Git LFS) View File

size 353536

+ 36
- 0
Assets/Art Assets/Sound/SFX/Spikes.wav.meta View File

@ -0,0 +1,36 @@
fileFormatVersion: 2
guid: 3342524d5a4ccda4283d0a1afdaf6307
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 0
quality: 1
conversionMode: 0
platformSettingOverrides:
4:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 3
quality: 1
conversionMode: 0
7:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Art Assets/Sound/SFX/Subtle_Jump.wav (Stored with Git LFS) View File

size 177602

+ 36
- 0
Assets/Art Assets/Sound/SFX/Subtle_Jump.wav.meta View File

@ -0,0 +1,36 @@
fileFormatVersion: 2
guid: f299cdaedee0d3945af92005e838736c
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 0
quality: 1
conversionMode: 0
platformSettingOverrides:
4:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 3
quality: 1
conversionMode: 0
7:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Scenes/Official Levels/Level 1.unity (Stored with Git LFS) View File

size 176902

BIN
Assets/Scenes/Official Levels/Level 2.unity (Stored with Git LFS) View File

size 1964746

BIN
Assets/Scenes/Official Levels/Level 3.unity (Stored with Git LFS) View File

size 594251

+ 19
- 3
Assets/Scripts/Character/CharacterInputController.cs View File

@ -26,6 +26,15 @@ public class CharacterInputController : MonoBehaviour
[SerializeField] [SerializeField]
private Animator m_animator; private Animator m_animator;
[SerializeField]
private AudioClip m_DeathSound;
[SerializeField]
private AudioClip m_VictoryClip;
[SerializeField]
private AudioClip m_JumpSound;
[SerializeField, BoxGroup("Settings")] [SerializeField, BoxGroup("Settings")]
private float m_speed = 2.0f; private float m_speed = 2.0f;
@ -73,25 +82,32 @@ public class CharacterInputController : MonoBehaviour
public void OnLandHappened() public void OnLandHappened()
{ {
m_animator.SetTrigger("Land");
m_animator.SetTrigger("Land");
} }
public void OnJumpHappened() public void OnJumpHappened()
{ {
m_animator.SetTrigger("Land"); m_animator.SetTrigger("Land");
//AudioSource.PlayClipAtPoint(m_JumpSound, transform.position);
} }
public void OnDeath(bool value) public void OnDeath(bool value)
{ {
if (value)
if (value)
{
m_animator.SetTrigger("Death"); m_animator.SetTrigger("Death");
AudioSource.PlayClipAtPoint(m_DeathSound, transform.position);
}
else else
m_animator.SetTrigger("Respawn"); m_animator.SetTrigger("Respawn");
} }
public void OnVictory(bool value) public void OnVictory(bool value)
{ {
if (value)
if (value)
{
m_animator.SetTrigger("Victory"); m_animator.SetTrigger("Victory");
AudioSource.PlayClipAtPoint(m_VictoryClip, transform.position);
}
} }

Loading…
Cancel
Save