use mekadon voices for autoplay

This commit is contained in:
Bui 2018-09-02 13:05:08 +01:00
parent 737c8c37ac
commit a95f2e4319
3 changed files with 40 additions and 17 deletions

View File

@ -34,6 +34,7 @@ var assets = {
'start.wav', 'start.wav',
'don.wav', 'don.wav',
'ka.wav', 'ka.wav',
'combo-50.wav', 'combo-50.wav',
'combo-100.wav', 'combo-100.wav',
'combo-200.wav', 'combo-200.wav',
@ -49,13 +50,31 @@ var assets = {
'combo-1200.wav', 'combo-1200.wav',
'combo-1300.wav', 'combo-1300.wav',
'combo-1400.wav', 'combo-1400.wav',
'fullcombo.wav',
'combo-50-meka.wav',
'combo-100-meka.wav',
'combo-200-meka.wav',
'combo-300-meka.wav',
'combo-400-meka.wav',
'combo-500-meka.wav',
'combo-600-meka.wav',
'combo-700-meka.wav',
'combo-800-meka.wav',
'combo-900-meka.wav',
'combo-1000-meka.wav',
'combo-1100-meka.wav',
'combo-1200-meka.wav',
'combo-1300-meka.wav',
'combo-1400-meka.wav',
'fullcombo-meka.wav',
'song-select.wav', 'song-select.wav',
'title.ogg', 'title.ogg',
'pause.wav', 'pause.wav',
'cancel.wav', 'cancel.wav',
'results.wav', 'results.wav',
'diffsel.wav', 'diffsel.wav',
'fullcombo.wav',
'gamefullcombo.wav', 'gamefullcombo.wav',
'gameclear.wav', 'gameclear.wav',

View File

@ -86,7 +86,7 @@ function Controller(selectedSong, songData, autoPlayEnabled){
if (score.fail == 0) { if (score.fail == 0) {
vp = 'fullcombo'; vp = 'fullcombo';
setTimeout(function(){ setTimeout(function(){
assets.sounds['fullcombo'].playAsset(); _this.playSoundMeka('fullcombo');
}, 1350); }, 1350);
} else if (score.hp >= 50) { } else if (score.hp >= 50) {
vp = 'clear'; vp = 'clear';
@ -136,6 +136,10 @@ function Controller(selectedSong, songData, autoPlayEnabled){
_game.playSound(soundID); _game.playSound(soundID);
} }
this.playSoundMeka = function(soundID){
_game.playSound(soundID + (autoPlayEnabled ? '-meka' : ''));
}
this.pauseSound = function(soundID, stop){ this.pauseSound = function(soundID, stop){
_game.pauseSound(soundID, stop); _game.pauseSound(soundID, stop);
} }

View File

@ -310,49 +310,49 @@ function Game(controller, selectedSong, songData){
switch(_combo){ switch(_combo){
case 50: case 50:
controller.playSound("combo-50"); controller.playSoundMeka("combo-50");
break; break;
case 100: case 100:
controller.playSound("combo-100"); controller.playSoundMeka("combo-100");
break; break;
case 200: case 200:
controller.playSound("combo-200"); controller.playSoundMeka("combo-200");
break; break;
case 300: case 300:
controller.playSound("combo-300"); controller.playSoundMeka("combo-300");
break; break;
case 400: case 400:
controller.playSound("combo-400"); controller.playSoundMeka("combo-400");
break; break;
case 500: case 500:
controller.playSound("combo-500"); controller.playSoundMeka("combo-500");
break; break;
case 600: case 600:
controller.playSound("combo-600"); controller.playSoundMeka("combo-600");
break; break;
case 700: case 700:
controller.playSound("combo-700"); controller.playSoundMeka("combo-700");
break; break;
case 800: case 800:
controller.playSound("combo-800"); controller.playSoundMeka("combo-800");
break; break;
case 900: case 900:
controller.playSound("combo-900"); controller.playSoundMeka("combo-900");
break; break;
case 1000: case 1000:
controller.playSound("combo-1000"); controller.playSoundMeka("combo-1000");
break; break;
case 1100: case 1100:
controller.playSound("combo-1100"); controller.playSoundMeka("combo-1100");
break; break;
case 1200: case 1200:
controller.playSound("combo-1200"); controller.playSoundMeka("combo-1200");
break; break;
case 1300: case 1300:
controller.playSound("combo-1300"); controller.playSoundMeka("combo-1300");
break; break;
case 1400: case 1400:
controller.playSound("combo-1400"); controller.playSoundMeka("combo-1400");
break; break;
} }
} }