Sprite sheet generator for iPhone? [closed]

被刻印的时光 ゝ 提交于 2019-12-10 19:58:04

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!