more audio updates

This commit is contained in:
Bui
2018-08-06 11:13:01 +01:00
parent 5eac1c3f14
commit 90e461b587
6 changed files with 27 additions and 3 deletions

View File

@@ -71,15 +71,23 @@ function Scoresheet(controller, score){
}
this.run = function(){
assets.sounds["results"].play();
assets.sounds["bgm_results"].volume = 1;
assets.sounds["bgm_results"].play();
_this.positionning();
_this.setResults();
$("#song-select").click(function(){
assets.sounds["bgm_results"].pause();
assets.sounds["bgm_songsel"].currentTime = 0;
controller.songSelection();
});
$("#replay").click(function(){
assets.sounds["bgm_results"].pause();
assets.sounds["bgm_songsel"].currentTime = 0;
controller.restartSong();
});