Add autoplay toggle, fix notes not being skipped on autoplay
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user