connect majority actions to sound effects;add more placeholder loops and effects

This commit is contained in:
jorsi
2020-05-30 19:48:44 -04:00
parent 71786c3671
commit 1d84e5f85c
20 changed files with 202 additions and 119 deletions
+4
View File
@@ -8,6 +8,8 @@ var World = {
'footsteps-1': '/audio/footsteps-1.wav',
'footsteps-2': '/audio/footsteps-2.wav',
'footsteps-3': '/audio/footsteps-3.wav',
'death-starved': '/audio/death-starved.wav',
'death-dehydrated': '/audio/death-dehydrated.wav',
},
RADIUS: 30,
VILLAGE_POS: [30, 30],
@@ -488,6 +490,7 @@ var World = {
$SM.addPerk('slow metabolism');
}
World.die();
AudioEngine.playSound(World.SOUNDS['death-starved']);
return false;
}
} else {
@@ -517,6 +520,7 @@ var World = {
$SM.addPerk('desert rat');
}
World.die();
AudioEngine.playSound(World.SOUNDS['death-dehydrated']);
return false;
}
} else {