cocos2d anchorpoint
来源:互联网 发布:下载软件排行 编辑:程序博客网 时间:2024/05/17 06:03
他们的关系是这样的(假设actualPosition.x,actualPosition.y是真实图片位置的中点):
actualPosition.x = position.x + width*(0.5 - anchor_point.x);
acturalPosition.y = position.y + height*(0.5 - anchor_point.y)
actualPosition 是sprite实际上在屏幕显示的位置, poistion是 程序设置的, achor_point也是程序设置的。
width是精灵的宽度,height是精灵的高度
- cocos2d anchorpoint
- cocos2d中的anchorPoint
- cocos2d中的anchorPoint
- cocos2d中的anchorPoint
- cocos2d中的anchorPoint
- cocos2d中的anchorPoint
- Cocos2d-x中的AnchorPoint
- 【cocos2d-x】AnchorPoint
- 理解Cocos2d里的anchorPoint
- cocos2d-x AnchorPoint锚点
- cocos2d-x AnchorPoint锚点
- cocos2d-x AnchorPoint锚点
- cocos2d-x AnchorPoint锚点
- cocos2d-x中AnchorPoint属性
- cocos2d-x AnchorPoint锚点
- cocos2d-x AnchorPoint锚点
- cocos2d-x AnchorPoint锚点
- cocos2d-x AnchorPoint锚点
- SQL 优化原则
- 十年
- Chrome安装Debug版FlashPlayer常见的问题
- pthread_join(等待另一个线程结束)
- S3C2410 实验八—— 脉宽调制(PWM)实验
- cocos2d anchorpoint
- 手机安全卫士开发系列(7)——知识点整理(2)
- 关注javascript的语言标准规范和发展——ECMAScript
- su和sudo
- POJ 1840 (空间和时间的换)
- 隐私策略
- hdu 1711 Number Sequence
- LCA(最近公共祖先)算法的理解。
- C#委托与事件