Add autoplay toggle, fix notes not being skipped on autoplay

This commit is contained in:
LoveEevee
2018-10-15 02:18:01 +03:00
parent 925e6b44bd
commit 0e1283c537
4 changed files with 40 additions and 9 deletions

View File

@@ -71,7 +71,7 @@ class Game{
var endTime = circle.getEndTime() + (drumrollNotes ? 0 : this.rules.bad)
if(ms >= circle.getMS()){
if(drumrollNotes && !circle.rendaPlayed){
if(drumrollNotes && !circle.rendaPlayed && ms < endTime){
circle.rendaPlayed = true
if(this.rules.difficulty === "easy"){
assets.sounds["renda" + this.controller.snd].stop()
@@ -84,10 +84,6 @@ class Game{
}
circle.beatMSCopied = true
}
if(!nextSet){
nextSet = true
this.currentCircle = i
}
}
if(ms > endTime){
if(!this.controller.autoPlayEnabled){
@@ -113,6 +109,9 @@ class Game{
}
}
}
}else if(!this.controller.autoPlayEnabled && !nextSet){
nextSet = true
this.currentCircle = i
}
}
}