问题
Until now I have been making my own 1024*1024 sprite sheets by placing the images in an 64 x 64 grid to help to identify easily the position and size of each sprite.
Needless to say, it works but i'm wasting a lot of space.
Is there any kind of tool to help me take separate sprites in .png format and generate sprite sheets of any dessired size with them ?. even better if it also generates a file with information about size and coordinates of each sprite.
Thanks.
回答1:
I read about Zwoptex in Michael Daley's book Learn iOS Game Programming.
http://zwoptexapp.com
回答2:
Is something like CATiledLayer what you need? I does not contain info about each tile, but it is the way maps and large zoom functionality is usually implemented.
回答3:
There are a number Ruby implementations on github. While they generate CSS and or HTML, it would be possible to take these one stage further and convert it into an XML file. Would make a nice little tool...
回答4:
Here's a simple texture packer in Python.
回答5:
You can use Sprite Master to do this. It's trimming feature allows you to use minimal space for your sprite sheet. It also exports coordinate data for your sprite sheet in different formats (Generic XML, Cocos2D, Corona, LibGDX, Sparrow, CSS Export)
回答6:
There is also texturepacker from codeandweb.com
http://www.codeandweb.com/texturepacker
来源:https://stackoverflow.com/questions/4278365/sprite-sheet-generator-for-iphone