Posted April 08, 2024 by umca
Hi everyone!
Another week has passed and we have incredible news! Finally, we added PixiJS and libGDX export data support.
If you use these game engines, you can just download GAP, choose images to pack, choose game engine you export for, press Generate and put the atlas into your game. A lot of pack options will be added like trim, scaling, PNG optimization, pivot setting per each sprite (we are thinking about it) and of course export scripts will be updated accordingly, but current generated atlas data contains all necessary image information for these game engines.
Custom Export:
Now when you download the archive you get not only .exe file but modules folder. In the folder you will find export script per each game engine. If there is no export script per your game engine you can just add another folder with export.lua file in modules folder, restart the app and you'll see it in dropdown menu.
For correct work, except export function please add three global variables:
There variables are used in dropdown menu and for correct file filtering in Save window.
By the way, now, export function accepts one more argument - atlasData.
We will try to add at least one new game engine support every release.
Except that I want to share about other small improvements we implemented:
Hope this was useful. Please, write in comments below what game engine we should add next time.