AsepriteJsonParser
ceramic.AsepriteJsonParser (Class)
Parser for Aseprite JSON format sprite sheets. Converts Aseprite JSON data into Ceramic's TextureAtlas and SpriteSheet structures.
Supports:
- Frame extraction with trimming and rotation
- Animation sequences from frame tags
- Directional playback (forward, reverse, pingpong)
- Frame timing information
Note: Only supports the array format for frames, not the hash format.
Static Members
Check if the provided JSON data is in Aseprite format.
| Name | Type | Description |
|---|---|---|
json |
Dynamic | The JSON data to validate |
| Returns | Description |
|---|---|
| Bool | True if this is valid Aseprite JSON with frames as an array |
Parse Aseprite JSON data into a TextureAtlas. Creates texture regions for each frame in the sprite sheet.
| Name | Type | Description |
|---|---|---|
data |
AsepriteJson | The Aseprite JSON data |
| Returns | Description |
|---|---|
| TextureAtlas | A TextureAtlas containing all frame regions |
Parse Aseprite JSON data into a SpriteSheet with animations. Creates animation sequences from frame tags with proper timing.
| Name | Type | Description |
|---|---|---|
data |
AsepriteJson | The Aseprite JSON data |
atlas |
TextureAtlas | The TextureAtlas containing frame regions |
| Returns | Description |
|---|---|
| SpriteSheet | A SpriteSheet with all animations configured |
Private Members
Internal flag to prevent spamming warnings about unsupported formats.