add over1500 combo sound

This commit is contained in:
Bui
2018-12-30 14:35:15 +00:00
parent 16f3366acf
commit 806b21df08
2 changed files with 5 additions and 3 deletions

View File

@@ -413,8 +413,8 @@ class Game{
if(this.combo > this.globalScore.maxCombo){
this.globalScore.maxCombo = this.combo
}
if(this.combo === 50 || this.combo > 0 && this.combo % 100 === 0 && this.combo <= 1400){
this.controller.playSoundMeka("combo-" + this.combo)
if(this.combo === 50 || this.combo > 0 && this.combo % 100 === 0){
this.controller.playSoundMeka("combo-" + (this.combo <= 1400 ? this.combo : "over1500"))
}
this.view.updateCombo(this.combo)
}