1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-27 07:27:12 +00:00
Funkin/source/funkin/ui/debug/anim/FlxAnimateTest.hx
2024-08-19 14:41:20 +02:00

37 lines
798 B
Haxe

package funkin.ui.debug.anim;
import flixel.FlxG;
import funkin.graphics.adobeanimate.FlxAtlasSprite;
import funkin.ui.MusicBeatState;
/**
* A simple test of FlxAnimate.
* Delete this later?
*/
class FlxAnimateTest extends MusicBeatState
{
var sprite:FlxAtlasSprite;
public function new()
{
super();
this.bgColor = 0xFF999999;
}
public override function create():Void
{
super.create();
sprite = new FlxAtlasSprite(0, 0, 'assets/images/freeplay/freeplay-boyfriend'); // I suppose a specific atlas to test should go in here
// Doesn't input anything, How does AtlasSprite work??? -Cheems
add(sprite);
camera.follow(sprite);
sprite.playAnimation(null);
}
public override function update(elapsed:Float):Void
{
super.update(elapsed);
}
}