GAP: v0.1.5 - #6
Hello!
I hope you're doing well. Please tell me about your week I'd love to hear about it!
As I promised, we added new engine support ... drumroll...
When you download GAP and you choose engine you will see three Phaser options:
- Phaser 3
- Phaser(JSON Array)
- Phaser(JSON Hash)
The last two Phaser data file formats can be used with older Phaser versions.
So, now GAP supports:
- PixiJS
- Phaser
- libGDX
And it is only the beginning. Every week we plan to increase this list.
Another feature we added was image trim.
Custom export:
GAP gives you the possibility to add custom export in case there is no particular one you need. It is very simple.
In modules folder, you get when download, just add another custom_engine_folder/export.lua.
Export.lua should implement export function that accepts 2 parameters: atlasImages and atlas.
Atlas contains such information: atlas image name, pixel format and scale.
AtlasImages is array with data about textures. As our tool develops, data we provide has enlarged.
Now, you find there:
- x, y - position of the texture in the atlas
- w, h - size of the texture in the atlas
- srcW, srcH - source size of the texture
- isTrimmed
- cropW, cropH - size of the texture after trim, if it was enabled
- cropX, cropY - offset after trim, it was enabled
In addition, please, do not forget to add 3 global variables:
- MODULE_NAME = "MyCustomExport"
- EXTENSION = "txt"
- DESCRIPTION = "MyCustomExportFile (.txt)"
That's all for this week. Hope you'll find out tool useful. Please keep following for more updates!
Thank you!
Files
Get GAP : Generic Atlas Packer
GAP : Generic Atlas Packer
gap
Status | In development |
Category | Tool |
Author | _enot |
Tags | atlas, Automation, gap, image, packer, Textures |
More posts
- GAP Update: Progress And First Community Feedback!Aug 05, 2024
- GAP: v0.2.3Jul 29, 2024
- GAP Update: Drag and Drop Your Assets!May 27, 2024
- GAP Update: Faster and Smaller Packing!May 20, 2024
- Secrets of custom export. Part 2May 13, 2024
- Secrets of custom export. Part 1May 06, 2024
- GAP: v0.1.7 - #8Apr 26, 2024
- GAP: v0.1.6 - #7Apr 22, 2024
- GAP: v0.1.4 - #5Apr 08, 2024
Leave a comment
Log in with itch.io to leave a comment.