在游戏开发中,为了节省内存,同时方便地管理资源,我们经常要把一堆小图拼接成一张大图及一个数据文件,TexturePacker就是用来干这个的。
它的基本用法很简单:
a.把图片拖到TexturePacker中,或添加文件夹(Add Folder)
b.设置导出路径及格式
c.点击发布(publish)
在它的2.x版的时候,我就开时用它了,但很惭愧,那时用的是破解版,对不住作者了。最初用它的目的是,用它的Pvr Viewer来查看pvr格式的文件内容。3.0版出了以后,功能进一步丰富,支持更多的图版数据格式,自动和产生多套资源,同时作者改变了它的授权方式。
官网地址为:http://www.codeandweb.com/texturepacker
TexturePacker虽然非常优秀,但不是免费的。但作者对于开发人员是非常人道的,你可以去http://www.codeandweb.com/request-free-license申请一个free licenses。要求如下:
Bloggers and framework developers can get free full licenses to my tools.
My requirements to you are:
- You write your own blog
- Your blog has at least 5 recent entries which are at least a page long and not older than 6 months
- Your blog is about game/software/web development or about applications
- FaceBook or Twitter is not a blog – except you have 100000 friends
申请成功后,作者会发送类似于一个这样的邮件给你:
Hi chongtao,
Here’s your license key for TexturePacker 3.0.0
xxxx-xxxx-xxxx-xxxx
The license key for PhysicsEditor is attached as file.
Have fun!
Nice blog! I would be happy to get a (short) blog post in return.
In case you do a tutorial post about my tools I can link back to your blog from the tutorials section on my page. That might give you some more visitors on your page!
Kind regards
Andreas
—————————————————————————
http://www.texturepacker.com – The sprite sheet creator turns chaos into order
http://www.physicseditor.de – Edit your physics shapes with ease
http://twitter.com/CodeAndWeb – Follow me on Twitter
文章部分内容参考 http://www.welefen.com/texturepacker.html