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

GAP_Windows64_v015.zip 1.4 MB
Apr 12, 2024

Get GAP : Generic Atlas Packer

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.