diff --git a/hmm.json b/hmm.json index 7c237844a..5de52076a 100644 --- a/hmm.json +++ b/hmm.json @@ -11,14 +11,14 @@ "name": "flixel", "type": "git", "dir": null, - "ref": "ec5d0f2", + "ref": "d6100cc8", "url": "https://github.com/EliteMasterEric/flixel" }, { "name": "flixel-addons", "type": "git", "dir": null, - "ref": "752c3d7", + "ref": "f107166", "url": "https://github.com/EliteMasterEric/flixel-addons" }, { @@ -30,7 +30,7 @@ "name": "flxanimate", "type": "git", "dir": null, - "ref": "master", + "ref": "18b2060", "url": "https://github.com/Dot-Stuff/flxanimate" }, { @@ -81,14 +81,14 @@ }, { "name": "lime", - "type": "haxelib", + "type": "git", "version": null }, { "name": "openfl", "type": "git", "dir": null, - "ref": "3fd5763c1", + "ref": "b2c18513", "url": "https://github.com/EliteMasterEric/openfl" }, { diff --git a/source/funkin/graphics/adobeanimate/FlxAtlasSprite.hx b/source/funkin/graphics/adobeanimate/FlxAtlasSprite.hx new file mode 100644 index 000000000..fee4ca920 --- /dev/null +++ b/source/funkin/graphics/adobeanimate/FlxAtlasSprite.hx @@ -0,0 +1,28 @@ +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; +}