GAP: v0.1.1 - #2


Hey everyone,

another working week has passed and we have some updates to share with you all! 

JSON export.  Now, GAP is complete atlas packer!:) Exported file contains all major data necessary for your game: image path, position and size. Our current image placement algorithm does not rotate images for better fit, so all above mention data is presented. 

But that is not all.  You already can make your own export, if you need some other format. Our goal is make a tool, that can be easily customized. 

Now, when you download the archive, you get not only .exe, but json.luaImportant! Executable file and lua script should be in the same folder. This file is your default export script. (LUA language was chosen, because it is popular in game development and it has clear syntax)

So, if  you need for example xml data, you need to do only two steps:

1. Rename default jsonName (this field should have more generic name, will fix it) to anyNameYouLike.xml.
2. Change content of the json.lua, so that it formats data into xml syntax. json.lua should not be renamed or it fails.

How it works. json.lua implements single export function. It uses write function that is implemented in C++ code. As an argument export function gets one parameter named rects, that is our atlas data and voila!



I think concept is clear. Current functionality is basic. Next step is possibility to have a specific folder with bunch of export files with different formats that you can loop through via UI. Except that we are planning to improve UI, redesign filesystem navigation and much more...   

That is all for now. Any feedback is welcome. If you have any questions or suggestion will be happy to read them in comments below.

Bye! 

Get GAP : Generic Atlas Packer

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.