Change note timing

This commit is contained in:
LoveEevee
2018-09-21 23:31:35 +03:00
parent cd694b39c2
commit 01d0a8104f
11 changed files with 161 additions and 120 deletions

View File

@@ -116,7 +116,14 @@ class P2Connection{
play(circle, mekadon){
if(this.otherConnected || this.notes.length > 0){
var type = circle.getType()
if(type === "balloon"|| type === "drumroll" || type === "daiDrumroll"){
var drumrollNotes = type === "balloon" || type === "drumroll" || type === "daiDrumroll"
if(drumrollNotes && mekadon.getMS() > circle.getEndTime()){
circle.played(-1, false)
mekadon.game.updateCurrentCircle()
}
if(drumrollNotes){
mekadon.playDrumrollAt(circle, 0, this.drumrollPace)
}else if(this.notes.length === 0){
mekadon.play(circle)