alpine-alpaca / asefile

Library for loading Aseprite files. Directly reads binary Aseprite files and does not require you to export files to JSON.
MIT License
43 stars 15 forks source link

Tileset export feature #5

Closed B-Reif closed 3 years ago

B-Reif commented 3 years ago

When working with tile data, it can be useful to export an image of the Tileset in order to render each tile on the texture exactly once.

The Aseprite beta UI doesn't currently support exporting a Tileset image directly. For now, @dacap shared a lua script that will do the same thing. The function in this PR is tested against an image generated by this lua script.

B-Reif commented 3 years ago

I'm not sure how we want to go about resolving the indexed pixels in this case. This may change depending on how we want to factor the pixel format data, per #4. We could store a reference to the required index-resolution data.

EDIT: We could do something similar to Frame<'a> where we expose a type that has a reference back to the file itself.

B-Reif commented 3 years ago

Ok, this PR makes a few new changes:

alpine-alpaca commented 3 years ago

Do you think this is ready for review/merge?

B-Reif commented 3 years ago

Do you think this is ready for review/merge?

Yes, I think so. We might want to merge both this and #6 together as the 0.3 release, or we can increment the version twice.

B-Reif commented 3 years ago

@alpine-alpaca Are there any other changes you'd like here?

alpine-alpaca commented 3 years ago

This is included in the merged PR, right?

alpine-alpaca commented 3 years ago

Handled by #9