o
odinpkg.dev
packages / library / ace

ace

6946ddalibrary

Aseprite file parser

MIT · updated 10 months ago

ACE

A little single-file library for parsing Aseprite files using the Odin programming language.

The name comes from me constantly misspelling "Aseprite" as "Aceprite".

Warning

ACE implements only a subset of the file spec that I need.

Usage

Just copy-paste the ace.odin file into your project and use the readFile or readFileFromMemory functions to get the file contents.

Important

The library does not currently provide any means to properly free all the memory it allocates as it is not needed for my current use cases!

Example

package test
import "ace"

@(rodata)
SOMETHING_DATA := #load("./something.ase")

main :: proc() {
    file := ace.readFile("./something.ase")
    file2 := ace.readFileFromMemory(SOMETHING_DATA)
}