Add restart and exit buttons, add restart shortcut, fix restarting on specific measures

This commit is contained in:
LoveEevee
2018-10-15 01:00:40 +03:00
parent d4f242a236
commit 925e6b44bd
5 changed files with 66 additions and 10 deletions

View File

@@ -60,8 +60,10 @@ class Game{
return this.songData.circles
}
updateCirclesStatus(){
var nextSet = false
var circles = this.songData.circles
circles.forEach(circle => {
for(var i in circles){
var circle = circles[i]
if(!circle.getPlayed()){
var ms = this.elapsedTime
var type = circle.getType()
@@ -82,6 +84,10 @@ class Game{
}
circle.beatMSCopied = true
}
if(!nextSet){
nextSet = true
this.currentCircle = i
}
}
if(ms > endTime){
if(!this.controller.autoPlayEnabled){
@@ -109,7 +115,7 @@ class Game{
}
}
}
})
}
}
setHPGain(gain){
this.HPGain = gain