SpriteSheetParser
ceramic.SpriteSheetParser (Class)
Generic sprite sheet data parser with auto-detection. Automatically identifies the format of sprite sheet data and delegates to the appropriate parser.
Currently supports:
- Aseprite JSON format (detected by JSON structure)
The parser is extensible - new formats can be added by checking for format-specific markers and delegating to appropriate parsers.
Static Members
Parse sprite sheet data into a TextureAtlas. Auto-detects the format and uses the appropriate parser.
Name | Type | Description |
---|---|---|
text |
String | Raw sprite sheet data text |
Returns | Description |
---|---|
TextureAtlas | Parsed TextureAtlas, or null if format is not recognized |
Parse sprite sheet data into a SpriteSheet with animations. Auto-detects the format and uses the appropriate parser.
Name | Type | Description |
---|---|---|
text |
String | Raw sprite sheet data text |
atlas |
TextureAtlas | The TextureAtlas to use for this sheet |
Returns | Description |
---|---|
SpriteSheet | Parsed SpriteSheet with animations, or null if format is not recognized |