Spec: https://github.com/aseprite/aseprite/blob/main/docs/ase-file-specs.md DataView: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView
- Download native aseprite file
- Parse little-endian file in data structure
- To read the sprite:
- Read the ASE header
- For each frame do (how many frames? the ASE header has that information):
- Read the frame header
- For each chunk in this frame (how many chunks? the frame header has that information)
- Read the chunk (it should be layer information, a cel or a palette)
- To read the sprite:
- Extract pixel information
- Read tags chunk to get animation data
- Extract animation
- Support multiple layers
- Refactorings