Add restart and exit buttons, add restart shortcut, fix restarting on specific measures
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user