refactor: sound pool
This commit is contained in:
parent
9c02bed6d9
commit
c7998a7668
6
resource/ded.sound.json
Normal file
6
resource/ded.sound.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"src": [
|
||||
"/ded.wav"
|
||||
],
|
||||
"volume": 0.1
|
||||
}
|
7
resource/fire.sound.json
Normal file
7
resource/fire.sound.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"interval": 0.025,
|
||||
"src": [
|
||||
"/fire.wav"
|
||||
],
|
||||
"volume": 0.05
|
||||
}
|
|
@ -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',
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user