Commit c3f7a877 authored by Tommé Nöll's avatar Tommé Nöll
Browse files

added sounds to player, created script for playing sound with varying volume...

added sounds to player, created script for playing sound with varying volume (only based on velocity for now)
parent 91e6ed29
......@@ -63,7 +63,7 @@ AudioMixerController:
- 454379d9b739458e2bebed1ed68fb54a
name: View
m_CurrentViewIndex: 0
m_TargetSnapshot: {fileID: 8961190344958005130}
m_TargetSnapshot: {fileID: 24500006}
--- !u!243 &24300002
AudioMixerGroupController:
m_ObjectHideFlags: 0
......
fileFormatVersion: 2
guid: 9bdd14a96e483b58ab10900094a69211
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 0c1d1158031ec9c988324d4d9b065fe8
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 67f31658b8bdf8ef1b9643b860021eea
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 32027f22574f422a1ae737a89fe953d2
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
......@@ -25,7 +25,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3109150749726334622}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: -0.16, z: 0}
m_LocalPosition: {x: 0, y: -0.56, z: 0}
m_LocalScale: {x: 0.5, y: 0.5, z: 0}
m_Children: []
m_Father: {fileID: 3724751736021467387}
......@@ -103,7 +103,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5087694558853776705}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0.038, z: -29.228271}
m_LocalPosition: {x: 0, y: 0.35, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 3724751736021467387}
......@@ -229,7 +229,11 @@ GameObject:
- component: {fileID: 930798346278949732}
- component: {fileID: 6910672580576760399}
- component: {fileID: 6818121494711655588}
- component: {fileID: 708758839}
- component: {fileID: 9051096322378570992}
- component: {fileID: 1423214215}
- component: {fileID: 708758838}
- component: {fileID: 708758853}
m_Layer: 9
m_Name: player
m_TagString: Player
......@@ -291,8 +295,9 @@ SpriteRenderer:
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_Sprite: {fileID: 10913, guid: 0000000000000000f000000000000000, type: 0}
m_Color: {r: 1, g: 0.049562424, b: 0, a: 1}
m_Sprite: {fileID: 4830011831083881150, guid: 0070d6c3cbeddfc4b83c3545ad5bdd41,
type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
......@@ -309,7 +314,7 @@ BoxCollider2D:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8849362558915370004}
m_Enabled: 1
m_Enabled: 0
m_Density: 1
m_Material: {fileID: 0}
m_IsTrigger: 0
......@@ -319,7 +324,7 @@ BoxCollider2D:
m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0.5, y: 0.5}
oldSize: {x: 0.2, y: 0.2}
oldSize: {x: 1.024, y: 1.184}
newSize: {x: 0.64, y: 0.64}
adaptiveTilingThreshold: 0.5
drawMode: 0
......@@ -335,7 +340,7 @@ CircleCollider2D:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8849362558915370004}
m_Enabled: 1
m_Enabled: 0
m_Density: 1
m_Material: {fileID: 0}
m_IsTrigger: 0
......@@ -356,7 +361,7 @@ Rigidbody2D:
m_Simulated: 1
m_UseFullKinematicContacts: 0
m_UseAutoMass: 1
m_Mass: 0.03844302
m_Mass: 0.36794996
m_LinearDrag: 0
m_AngularDrag: 0.05
m_GravityScale: 3
......@@ -379,7 +384,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
rigidbody: {fileID: 8984181927896648757}
movementSmoothing: 0.05
jumpForce: 20
jumpForce: 300
groundCheck: {fileID: 7244929154000840531}
ceilingCheck: {fileID: 5132821308292831780}
crouchDisableCollider: {fileID: 7524024936898048702}
......@@ -564,6 +569,106 @@ MonoBehaviour:
pullSpeed: 1
lightPullingForce: 5
heavyPullingForce: 10
audioSource: {fileID: 708758853}
ropeShoot: {fileID: 8300000, guid: 0c1d1158031ec9c988324d4d9b065fe8, type: 3}
ropeSnap: {fileID: 8300000, guid: 67f31658b8bdf8ef1b9643b860021eea, type: 3}
--- !u!82 &708758839
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8849362558915370004}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 6642627865411587226, guid: 695b0927dcbd31e0bacecbafd1c34b15,
type: 2}
m_audioClip: {fileID: 0}
m_PlayOnAwake: 0
m_Volume: 1
m_Pitch: 1
Loop: 1
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!231 &9051096322378570992
SpringJoint2D:
m_ObjectHideFlags: 0
......@@ -584,3 +689,290 @@ SpringJoint2D:
m_Distance: 0.005
m_DampingRatio: 0
m_Frequency: 1
--- !u!60 &1423214215
PolygonCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8849362558915370004}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IsTrigger: 0
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: 0, y: 0}
m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0.5, y: 0.5}
oldSize: {x: 1.024, y: 1.184}
newSize: {x: 0.64, y: 0.64}
adaptiveTilingThreshold: 0.5
drawMode: 0
adaptiveTiling: 0
m_AutoTiling: 0
m_Points:
m_Paths:
- - {x: 0.20925713, y: -0.3637964}
- {x: 0.20505333, y: -0.2623353}
- {x: 0.1698494, y: -0.20390111}
- {x: 0.12200022, y: -0.1408422}
- {x: 0.23830366, y: -0.1998955}
- {x: 0.36159182, y: -0.3010894}
- {x: 0.3715129, y: -0.31744128}
- {x: 0.38644361, y: -0.3423599}
- {x: 0.40767193, y: -0.34281236}
- {x: 0.45830393, y: -0.430199}
- {x: 0.4943037, y: -0.54800004}
- {x: 0.49600002, y: -0.55600005}
- {x: 0.504796, y: -0.55109954}
- {x: 0.5059333, y: -0.46660393}
- {x: 0.50029373, y: -0.45380104}
- {x: 0.5000839, y: -0.43659753}
- {x: 0.4780941, y: -0.37059706}
- {x: 0.44656038, y: -0.31563872}
- {x: 0.4855075, y: -0.33792585}
- {x: 0.44389582, y: -0.27380103}
- {x: 0.39679575, y: -0.24490052}
- {x: 0.27343988, y: -0.15038544}
- {x: 0.1272521, y: -0.07767218}
- {x: 0.043110847, y: -0.019521356}
- {x: 0.0910368, y: -0.040990293}
- {x: 0.17661905, y: -0.053021967}
- {x: 0.26303005, y: -0.042585135}
- {x: 0.2826314, y: -0.03677243}
- {x: 0.34349775, y: -0.005696535}
- {x: 0.38659716, y: 0.032502532}
- {x: 0.4069953, y: 0.06670153}
- {x: 0.4269948, y: 0.14580107}
- {x: 0.42929888, y: 0.20800006}
- {x: 0.41899538, y: 0.24400008}
- {x: 0.3695917, y: 0.32670152}
- {x: 0.3085227, y: 0.37358677}
- {x: 0.29279613, y: 0.382995}
- {x: 0.28094912, y: 0.38818407}
- {x: 0.21769667, y: 0.3967961}
- {x: 0.17479038, y: 0.39678705}
- {x: 0.09479809, y: 0.38598204}
- {x: 0.029595375, y: 0.36918056}
- {x: -0.06804514, y: 0.32935715}
- {x: -0.12521744, y: 0.31598556}
- {x: -0.13280869, y: 0.34399998}
- {x: -0.13556194, y: 0.3755976}
- {x: -0.13192129, y: 0.42064714}
- {x: -0.12681961, y: 0.45282316}
- {x: -0.10442257, y: 0.509982}
- {x: -0.11758089, y: 0.51876175}
- {x: -0.12447786, y: 0.52225065}
- {x: -0.16157436, y: 0.46160293}
- {x: -0.16915894, y: 0.4095018}
- {x: -0.23401117, y: 0.50799274}
- {x: -0.27968693, y: 0.55676925}
- {x: -0.3052168, y: 0.5924008}
- {x: -0.31518412, y: 0.59280145}
- {x: -0.3094926, y: 0.53341675}
- {x: -0.30918074, y: 0.46759927}
- {x: -0.30677652, y: 0.44756305}
- {x: -0.2903757, y: 0.39639354}
- {x: -0.2735448, y: 0.3579241}
- {x: -0.24995327, y: 0.3279928}
- {x: -0.19398928, y: 0.29001093}
- {x: -0.15479803, y: 0.2924224}
- {x: -0.14526892, y: 0.27581847}
- {x: -0.13951397, y: 0.25025332}
- {x: -0.1434164, y: 0.24065983}
- {x: -0.14531422, y: 0.15155697}
- {x: -0.14090252, y: 0.1456207}
- {x: -0.13957739, y: 0.1419965}
- {x: -0.13764286, y: 0.13616097}
- {x: -0.13199282, y: 0.10480869}
- {x: -0.11759567, y: 0.07600725}
- {x: -0.11540842, y: 0.06844711}
- {x: -0.1152091, y: 0.026213408}
- {x: -0.12609482, y: -0.050094426}
- {x: -0.12984276, y: -0.072690666}
- {x: -0.14959192, y: -0.15489042}
- {x: -0.15454102, y: -0.17343909}
- {x: -0.1798954, y: -0.22320408}
- {x: -0.24879599, y: -0.2588061}
- {x: -0.31819916, y: -0.26190555}
- {x: -0.38219643, y: -0.29320937}
- {x: -0.3719902, y: -0.29619265}
- {x: -0.34498835, y: -0.29669237}
- {x: -0.3689003, y: -0.31750757}
- {x: -0.41859722, y: -0.35570657}
- {x: -0.47979975, y: -0.42982274}
- {x: -0.4799509, y: -0.44383386}
- {x: -0.4827137, y: -0.4469974}
- {x: -0.48847532, y: -0.4582906}
- {x: -0.5056963, y: -0.48850253}
- {x: -0.512, y: -0.52000004}
- {x: -0.49989557, y: -0.5099899}
- {x: -0.46360207, y: -0.46739298}
- {x: -0.408, y: -0.416796}
- {x: -0.35780096, y: -0.37809443}
- {x: -0.2689004, y: -0.32829344}
- {x: -0.20359898, y: -0.29758847}
- {x: -0.16709948, y: -0.29409444}
- {x: -0.12230015, y: -0.25819355}
- {x: -0.10360193, y: -0.22119391}
- {x: -0.082304, y: -0.1655919}
- {x: -0.06680775, y: -0.09109676}
- {x: -0.061610222, y: -0.02876532}
- {x: -0.024144173, y: -0.07802719}
- {x: 0.04276228, y: -0.14158273}
- {x: 0.07849407, y: -0.18199086}
- {x: 0.08261776, y: -0.19201201}
- {x: 0.09403515, y: -0.20571929}
- {x: 0.115730286, y: -0.2547539}
- {x: 0.12235832, y: -0.25320125}
- {x: 0.11952019, y: -0.26317775}
- {x: 0.11736059, y: -0.28879195}
- {x: 0.11780548, y: -0.29786777}
- {x: 0.113061905, y: -0.3084247}
- {x: 0.11375189, y: -0.31563896}
- {x: 0.11919308, y: -0.32354385}
- {x: 0.12673664, y: -0.31761408}
- {x: 0.13596773, y: -0.2972983}
- {x: 0.13894701, y: -0.31578946}
- {x: 0.13484192, y: -0.32094747}
- {x: 0.13286018, y: -0.35680205}
- {x: 0.12582493, y: -0.38764906}
- {x: 0.118929386, y: -0.39930004}
- {x: 0.10262632, y: -0.40809584}
- {x: 0.037868023, y: -0.43807188}
- {x: -0.0011634827, y: -0.46346942}
- {x: -0.024467468, y: -0.48227555}
- {x: -0.07205963, y: -0.5380719}
- {x: -0.10779667, y: -0.5792695}
- {x: -0.10992813, y: -0.59246707}
- {x: -0.0957365, y: -0.584994}
- {x: -0.09503889, y: -0.58659816}
- {x: -0.09209299, y: -0.58204365}
- {x: -0.08725262, y: -0.5768211}
- {x: -0.051642418, y: -0.54840344}
- {x: -0.01809454, y: -0.52826643}
- {x: 0.017495632, y: -0.5078388}
- {x: 0.043029785, y: -0.4945748}
- {x: 0.16046715, y: -0.45159277}
- {x: 0.19532919, y: -0.41465864}
--- !u!114 &708758838
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8849362558915370004}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d32ca477b490bae01b213f53f70d31fb, type: 3}
m_Name:
m_EditorClassIdentifier:
audioSource: {fileID: 708758839}
soundObjects:
- clip: {fileID: 8300000, guid: 32027f22574f422a1ae737a89fe953d2, type: 3}
soundOwner: {fileID: 7207841027803033579}
basedOn: 0
multiplier: 0.1
- clip: {fileID: 0}
soundOwner: {fileID: 6818121494711655588}
basedOn: 0
multiplier: 0.1
--- !u!82 &708758853
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8849362558915370004}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 6642627865411587226, guid: 695b0927dcbd31e0bacecbafd1c34b15,
type: 2}
m_audioClip: {fileID: 0}
m_PlayOnAwake: 0
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
......@@ -1608,6 +1608,40 @@ Transform:
type: 3}
m_PrefabInstance: {fileID: 4809852221727672545}
m_PrefabAsset: {fileID: 0}
--- !u!84 &626895810
RenderTexture:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name:
m_ImageContentsHash:
serializedVersion: 2
Hash: 00000000000000000000000000000000
m_ForcedFallbackFormat: 4
m_DownscaleFallback: 0
serializedVersion: 3
m_Width: 1215
m_Height: 545
m_AntiAliasing: 1
m_DepthFormat: 0
m_ColorFormat: 21