Add .tja file support

This commit is contained in:
LoveEevee
2018-10-11 01:13:24 +03:00
parent 9b2c740b9d
commit 39655fc534
11 changed files with 395 additions and 70 deletions

View File

@@ -48,7 +48,7 @@ class View{
this.drumroll = []
this.beatInterval = this.controller.getSongData().beatInfo.beatInterval
this.beatInterval = this.controller.parsedSongData.beatInfo.beatInterval
this.assets = new ViewAssets(this)
this.touch = -Infinity
@@ -289,16 +289,12 @@ class View{
}
}
drawMeasures(){
var measures = this.controller.getSongData().measures
var measures = this.controller.parsedSongData.measures
var currentTime = this.controller.getElapsedTime()
measures.forEach((measure, index)=>{
var timeForDistance = this.posToMs(this.distanceForCircle, measure.speed)
if(
currentTime >= measure.ms - timeForDistance
&& currentTime <= measure.ms + 350
&& measure.nb == 0
){
if(currentTime >= measure.ms - timeForDistance && currentTime <= measure.ms + 350){
this.drawMeasure(measure)
}
})