Fix getting stuck at the loading screen

This commit is contained in:
LoveEevee
2018-08-29 08:55:16 +03:00
parent 2adbfc1e99
commit 5a82469da5
7 changed files with 44 additions and 29 deletions

View File

@@ -81,13 +81,13 @@ function Scoresheet(controller, score){
_this.setResults();
$("#song-select").click(function(){
assets.sounds["don"].play();
assets.sounds["don"].playAsset();
bgm.pause();
controller.songSelection();
});
$("#replay").click(function(){
assets.sounds["don"].play();
assets.sounds["don"].playAsset();
bgm.pause();
controller.restartSong();
});
@@ -96,7 +96,7 @@ function Scoresheet(controller, score){
}
assets.sounds["results"].play();
assets.sounds["results"].playAsset();
bgm = new BufferedLoop(
{url: '/assets/audio/bgm_result.ogg', duration: 0.847},