mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-01-21 03:57:44 +00:00
moved vis code
This commit is contained in:
parent
35d0feceb8
commit
be348d0f13
|
@ -50,7 +50,7 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
|
||||||
|
|
||||||
var visStr = 'viz';
|
var visStr = 'viz';
|
||||||
viz.animation.addByPrefix('VIZ', visStr + lol, 0);
|
viz.animation.addByPrefix('VIZ', visStr + lol, 0);
|
||||||
viz.animation.play('VIZ', false, false, -1);
|
viz.animation.play('VIZ', false, false, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,6 +82,16 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// drawFFT();
|
||||||
|
|
||||||
|
super.draw();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TJW funkVis based visualizer! updateFFT() is the old nasty shit that dont worky!
|
||||||
|
*/
|
||||||
|
function drawFFT():Void
|
||||||
|
{
|
||||||
var levels = analyzer.getLevels(false);
|
var levels = analyzer.getLevels(false);
|
||||||
|
|
||||||
for (i in 0...min(group.members.length, levels.length))
|
for (i in 0...min(group.members.length, levels.length))
|
||||||
|
@ -95,8 +105,6 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
|
||||||
|
|
||||||
group.members[i].animation.curAnim.curFrame = animFrame;
|
group.members[i].animation.curAnim.curFrame = animFrame;
|
||||||
}
|
}
|
||||||
|
|
||||||
super.draw();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// function updateFFT(elapsed:Float)
|
// function updateFFT(elapsed:Float)
|
||||||
|
|
Loading…
Reference in a new issue