CHARTING SHIT IN PROGRESS

This commit is contained in:
Cameron Taylor
2020-10-13 01:07:04 -07:00
parent 405f362a73
commit 5ecd641b13
7 changed files with 198 additions and 21 deletions

View File

@ -11,6 +11,9 @@ class MusicBeatState extends FlxUIState
private var totalBeats:Int = 0;
private var totalSteps:Int = 0;
private var curStep:Int = 0;
private var curBeat:Int = 0;
override function create()
{
super.create();
@ -20,6 +23,9 @@ class MusicBeatState extends FlxUIState
{
everyStep();
curStep = Math.floor(Conductor.songPosition / Conductor.stepCrochet);
curBeat = Math.floor(curStep / 4);
super.update(elapsed);
}