View: Add song backgrounds

This commit is contained in:
LoveEevee
2018-11-23 19:53:29 +03:00
parent 8f1f029b8e
commit 87bdf7a407
8 changed files with 108 additions and 22 deletions

View File

@@ -349,12 +349,14 @@ class Game{
this.mainAsset.stop()
this.mainMusicPlaying = false
this.view.pauseMove(0, true)
this.view.gameDiv.classList.add("game-paused")
}else{
assets.sounds["cancel"].play()
this.paused = false
var currentDate = +new Date
this.startDate += currentDate - this.latestDate
this.sndTime = currentDate - snd.buffer.getTime() * 1000
this.view.gameDiv.classList.remove("game-paused")
}
}
isPaused(){