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

@@ -70,7 +70,7 @@ class Keyboard{
}
}
checkKey(keyCode, keyup, callback){
if(this.keys[keyCode] && !this.isWaitingForKeyup(keyCode, keyup)){
if(this.keys[keyCode] && !this.isWaiting(keyCode, keyup)){
this.waitForKeyup(keyCode, keyup)
callback()
}
@@ -109,7 +109,7 @@ class Keyboard{
delete this.waitKeyupMenu[keyCode]
}
}
isWaitingForKeyup(key, type){
isWaiting(key, type){
if(type === "score"){
return this.waitKeyupScore[key]
}else if(type === "sound"){