Atlas frames collection. It makes possible to use texture atlases in Flixel. Plus it contains few packer parser methods for most commonly used atlas formats.
Static methods
staticfindFrame(graphic:FlxGraphic, ?border:FlxPoint):FlxAtlasFrames
Returns the FlxAtlasFrame of the specified FlxGraphic object.
Parameters:
graphic |
|
|---|
Returns:
FlxAtlasFrames collection for the specified FlxGraphic object
Could be null if FlxGraphic doesn't have it yet.
staticfromLibGdx(source:FlxGraphicAsset, description:String):FlxAtlasFrames
Parsing method for LibGDX atlases.
Parameters:
source | The image source (can be |
|---|---|
description | Contents of the file with atlas description.
You can get it with |
Returns:
Newly created FlxAtlasFrames collection.
staticfromSparrow(Source:FlxGraphicAsset, Description:String):FlxAtlasFrames
Parsing method for Sparrow texture atlases (they can be generated with Shoebox http://renderhjs.net/shoebox/ for example).
Parameters:
Source | The image source (can be |
|---|---|
Description | Contents of the XML file with atlas description.
You can get it with |
Returns:
Newly created FlxAtlasFrames collection.
staticfromSpriteSheetPacker(Source:FlxGraphicAsset, Description:String):FlxAtlasFrames
Parsing method for Sprite Sheet Packer atlases (http://spritesheetpacker.codeplex.com/).
Parameters:
Source | The image source (can be |
|---|---|
Description | Contents of the file with atlas description.
You can get it with |
Returns:
Newly created FlxAtlasFrames collection.
staticfromTexturePackerJson(Source:FlxGraphicAsset, Description:FlxTexturePackerSource):FlxAtlasFrames
Parsing method for TexturePacker atlases in JSON format.
Parameters:
Source | The image source (can be |
|---|---|
Description | Contents of JSON file with atlas description.
You can get it with |
Returns:
Newly created FlxAtlasFrames collection.
staticfromTexturePackerXml(Source:FlxGraphicAsset, Description:String):FlxAtlasFrames
Parsing method for TexturePacker atlases in generic XML format.
Parameters:
Source | The image source (can be |
|---|---|
Description | Contents of the XML file with atlas description.
You can get it with |
Returns:
Newly created FlxAtlasFrames collection.