From be348d0f13ad36c15d4cfc5fb881b02eceba261a Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Fri, 1 Mar 2024 00:15:51 -0500 Subject: [PATCH] moved vis code --- source/funkin/audio/visualize/ABotVis.hx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/source/funkin/audio/visualize/ABotVis.hx b/source/funkin/audio/visualize/ABotVis.hx index 2501ca6e6..13c7eb501 100644 --- a/source/funkin/audio/visualize/ABotVis.hx +++ b/source/funkin/audio/visualize/ABotVis.hx @@ -50,7 +50,7 @@ class ABotVis extends FlxTypedSpriteGroup var visStr = 'viz'; 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 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); for (i in 0...min(group.members.length, levels.length)) @@ -95,8 +105,6 @@ class ABotVis extends FlxTypedSpriteGroup group.members[i].animation.curAnim.curFrame = animFrame; } - - super.draw(); } // function updateFFT(elapsed:Float)