refactor: sound pool

This commit is contained in:
cha0s 2019-04-21 23:01:47 -05:00
parent 9c02bed6d9
commit c7998a7668
3 changed files with 16 additions and 5 deletions

6
resource/ded.sound.json Normal file
View File

@ -0,0 +1,6 @@
{
"src": [
"/ded.wav"
],
"volume": 0.1
}

7
resource/fire.sound.json Normal file
View File

@ -0,0 +1,7 @@
{
"interval": 0.025,
"src": [
"/fire.wav"
],
"volume": 0.05
}

View File

@ -49,8 +49,7 @@ function fireJSON(position) {
params: {
sounds: {
fire: {
src: '/fire.wav',
volume: 0.05,
uri: '/fire.sound.json',
},
}
}
@ -66,7 +65,7 @@ function fireJSON(position) {
damageSpecs: [
{
affinity: 'fire',
lock: 0.075,
lock: 0.15,
power: 5,
variance: 0.25,
},
@ -167,8 +166,7 @@ function kittyJSON(position) {
params: {
sounds: {
deathSound: {
src: '/ded.wav',
volume: 0.1,
uri: '/ded.sound.json',
},
}
}