【项目经验】如何用TexturePacker Physicseditor开发游戏
首先感謝Andreas的license。先廣告一下Andreas。
-----------------------------------------------------------------------------------------
http://www.codeandweb.com/texturepacker - The sprite sheet creator turns chaos into order
http://www.codeandweb.com/physicseditor - Edit your physics shapes with ease
http://twitter.com/CodeAndWeb - Follow me on Twitter
-----------------------------------------------------------------------------------------
CodeAndWeb / Andreas Loew
Brumersweg 15/1
89233 Neu-Ulm
Germany
因為TexturePacker和Physicseditor都是收費的。如果需要用到如下工具可以去如下地址申請免費的key。
http://www.codeandweb.com/request-free-license
?
My requirements to you are:
- You write your own blog
- Facebook, Twitter, Tumblr or Weibo are not blogs - unless you have 100.000 friends ;-)
- Your blog has at least 5 recent relevant entries which are at least a page long and not older than 6 months
- Your blog is about game/software/web development or about application
說下他們在游戲的作用。
1.TexturePacker的作用和使用
?
作用:圖片打包和資源優(yōu)化。把散亂的圖片打包成大圖片,進行資源優(yōu)化。
使用如下:
a.把圖片拖到TexturePacker中,或添加文件夾(Add Folder)
b.設(shè)置導(dǎo)出路徑及格式
c.點擊發(fā)布(publish)
詳情可以參考:http://www.codeandweb.com/texturepacker
2.Physicseditor的作用和使用
?
作用:物理編輯器。讓游戲的任何你想創(chuàng)建的實體具有現(xiàn)實的物理屬性。
使用如下:
1.在Publish之后,是導(dǎo)出Plist的文件。
可以通過如下代碼加載
?
// 加載物理模型GB2ShapeCache::sharedGB2ShapeCache()->addShapesWithFile("xxx.plist");
2.再通過創(chuàng)建Box2d創(chuàng)建導(dǎo)入該物體即可使用。
?
詳情可以參考:http://www.codeandweb.com/physicseditor/features
?
總結(jié)
以上是生活随笔為你收集整理的【项目经验】如何用TexturePacker Physicseditor开发游戏的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 手机客户端和服务器端通信
- 下一篇: 九把巨剑,为什么会从天而降?