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
- Secrets of custom export. Part 23 days ago
- Secrets of custom export. Part 110 days ago
- GAP: v0.1.7 - #820 days ago
- GAP: v0.1.6 - #724 days ago
- GAP: v0.1.4 - #538 days ago
- GAP - #445 days ago
- GAP: v0.1.2 - #352 days ago
- GAP: v0.1.1 - #259 days ago
- GAP: v0.1.0 - #166 days ago
Leave a comment
Log in with itch.io to leave a comment.