在遊戲開發中,爲了節省內存,同時方便地管理資源,我們經常要把一堆小圖拼接成一張大圖及一個數據文件,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