Hi,
I created a tool called TexturePacker. It is a command line tool for fast integration in your build process.
What it does:
- Pack png, jpg,... in one big sprite sheet
- Create a cocos2d compatible plist file
- Trim the sprites
- Optionally optimize image for RGB565 and ARGB4444 or RGB444 reducing the file size of the output file
- Scale shapes on the fly to create hd and sd sprite sheets from one set of source files
- Automatically determin the best size for the output texture
- Extreme fast!
Examples:
TexturePacker assets/*.png
creates out.plist and out.png from all png files in assets trimming all files and creating a texture with max. 2048x2048px
TexturePacker --plist main-hd.plist --sheet main-hd.png assets/*.png
creates main-hd.plist and main-hd.png from all png files in assets trimming all files and creating a texture with max. 2048x2048px
TexturePacker --scale 0.5 --max-size 1024 --plist main-sd.plist --sheet main-sd.png assets/*.png
creates main-sd.plist and main-sd.png from all png files in assets scaling all images to 50%, trimming all files and creating a texture with max. 1024x1024px
Currently its still unter development but delivers extremely good output.
It requires the current 0.99.5-beta or the patch which allows sprite sheets to be rotated - currently there is no option for turning rotation off.
If you are interested please PM me.
Cheers
thesk
P.S. You should have some knowledge about MacOS and command line tools ;-)