Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 816 Bytes

todos.md

File metadata and controls

20 lines (16 loc) · 816 Bytes

Reading native Aseprite files

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)
  • Extract pixel information
  • Read tags chunk to get animation data
  • Extract animation
  • Support multiple layers
  • Refactorings