mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-02-17 04:11:23 -05:00
29 lines
547 B
Haxe
29 lines
547 B
Haxe
|
package funkin.graphics.adobeanimate;
|
||
|
|
||
|
import flxanimate.FlxAnimate;
|
||
|
|
||
|
/**
|
||
|
* A sprite which provides convenience functions for rendering a texture atlas.
|
||
|
*/
|
||
|
class FlxAtlasSprite extends FlxAnimate
|
||
|
{
|
||
|
/**
|
||
|
* The animations this sprite has available.
|
||
|
* Keys are animation names, values are the animation data.
|
||
|
*/
|
||
|
var animations:Map<String, FlxAnimateAnimation>;
|
||
|
|
||
|
public function new(?X:Float = 0, ?Y:Float = 0)
|
||
|
{
|
||
|
super(X, Y);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
typedef FlxAnimateAnimation =
|
||
|
{
|
||
|
name:String;
|
||
|
startFrame:Int;
|
||
|
endFrame:Int;
|
||
|
loop:Bool;
|
||
|
}
|