Add renda sound, dai notes scoring, fix music timing

This commit is contained in:
LoveEevee
2018-09-18 20:33:18 +03:00
parent 0ee627db9d
commit a49cc6a3c4
10 changed files with 181 additions and 145 deletions

View File

@@ -6,7 +6,7 @@ class Circle{
this.text = text
this.speed = speed
this.endTime = endTime ? endTime : ms + 150
this.isPlayed = false
this.isPlayed = 0
this.animating = false
this.animT = 0
this.score = 0
@@ -15,6 +15,7 @@ class Circle{
this.status = -1
this.timesHit = 0
this.requiredHits = requiredHits ? requiredHits : 0
this.rendaPlayed = false
}
getMS(){
return this.ms
@@ -58,9 +59,9 @@ class Circle{
endAnimation(){
this.animationEnded = true
}
played(score){
played(score, big){
this.score = score
this.isPlayed = true
this.isPlayed = big ? 2 : 1
}
hit(){
this.timesHit++