improve footstep sounds

This commit is contained in:
jorsi
2020-06-04 15:52:31 -04:00
parent a5c81f10e8
commit dc3184e31b
8 changed files with 4 additions and 1 deletions
+3
View File
@@ -61,6 +61,9 @@ var AudioLibrary = {
FOOTSTEPS_1: 'audio/footsteps-1.flac',
FOOTSTEPS_2: 'audio/footsteps-2.flac',
FOOTSTEPS_3: 'audio/footsteps-3.flac',
FOOTSTEPS_4: 'audio/footsteps-4.flac',
FOOTSTEPS_5: 'audio/footsteps-5.flac',
FOOTSTEPS_6: 'audio/footsteps-6.flac',
EAT_MEAT: 'audio/eat-meat.flac',
USE_MEDS: 'audio/use-meds.flac',
WEAPON_UNARMED_1: 'audio/weapon-unarmed-1.flac',
+1 -1
View File
@@ -348,7 +348,7 @@ var World = {
World.doSpace();
// play random footstep
var randomFootstep = Math.floor(Math.random() * 2) + 1;
var randomFootstep = Math.floor(Math.random() * 5) + 1;
AudioEngine.playSound(AudioLibrary['FOOTSTEPS_' + randomFootstep]);
if(World.checkDanger()) {