【项目经验】如何用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的作用和使用

 



作用:图片打包和资源优化。把散乱的图片打包成大图片,进行资源优化。

使用如下:

a.把图片拖到TexturePacker中,或添加文件夹(Add Folder)

b.设置导出路径及格式

c.点击发布(publish)


详情可以参考:http://www.codeandweb.com/texturepacker


2.Physicseditor的作用和使用

 

作用:物理编辑器。让游戏的任何你想创建的实体具有现实的物理属性。

使用如下:


1.在Publish之后,是导出Plist的文件。

可以通过如下代码加载

 

    // 加载物理模型
    GB2ShapeCache::sharedGB2ShapeCache()->addShapesWithFile("xxx.plist");  


2.再通过创建Box2d创建导入该物体即可使用。

 


详情可以参考:http://www.codeandweb.com/physicseditor/features

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值