VOCC / vocc

A web-based Gameboy Advance image editor and converter
9 stars 5 forks source link

Fix Sprite code export #52

Closed lbussell closed 4 years ago

lbussell commented 4 years ago

Getting image data from Sprite is still stubbed. I left it stubbed because I'm pretty sure sprites should be exported as an array of palette indices, just like the data representation is. But the current implementation is expecting a Uint8 of colors.

Not sure about a path forwards - maybe a method like getCData(): string (along with getHeaderData(), etc.) that returns the properly formatted string of the object data in c.

lbussell commented 4 years ago

Going with the above-mentioned method.