https://github.com/pkhead/contour
made this little tool because I'm too lazy to press the export buttons on tiled/aseprite. also i couldn't find any similar libraries i don't know if i'm reinventing the wheel. I've only made it like 2 days ago but I think I squashed enough bugs and edge cases.
it is a "content pipeline" tool (if you've used xna before that concept should be familiar). the idea is that it will search your asset directories for files of a given extension, run a processor script on them that will export them to a different file, and when your game code tries to load the file using the original path of the asset, it will load the exported file instead.
it is also easily customizable. you can associate processor scripts that you created with file extensions quite easily (i think). documentation is in readme, and a prepackaged configuration that exports .tmx files to .lua files using the Tiled CLI is available as an example.
personally, I've used a similar system for Aseprite files in the past, since Aseprite cli allows exporting to a rect-packed atlas file which I find very useful. the difference is that before I used a Makefile or a hardcoded python script. This is more user-friendly.
contour - content pipeline tool
Who is online
Users browsing this forum: No registered users and 3 guests