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

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