-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
actually revert the softcoded abot for now
- Loading branch information
1 parent
1e57223
commit 086b2f9
Showing
3 changed files
with
56 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import flixel.FlxSprite; | ||
import flixel.group.FlxTypedSpriteGroup; | ||
import funkin.Paths; | ||
|
||
class ABotVisualizer extends FlxTypedSpriteGroup | ||
{ | ||
function new() | ||
{ | ||
super(0, 0); | ||
|
||
var vizFrames = Paths.getSparrowAtlas('aBotViz'); | ||
|
||
for (i in 1...8) | ||
{ | ||
var viz:FlxSprite = new FlxSprite(50 * i, 0); | ||
viz.frames = vizFrames; | ||
add(viz); | ||
|
||
// note: in the a-bot files, dave named the symbols both "VIZ" and "viz" | ||
// I manually changed them in the xml file, but if it ever gets re-exported | ||
// it will need to either be renamed, or accomodated here! | ||
viz.animation.addByPrefix('VIZ', "viz" + i, 0); | ||
viz.animation.play("VIZ", false, false, 3); | ||
} | ||
} | ||
} |