cocos2d-x
Fvly
这个作者很懒,什么都没留下…
展开
-
让精灵按照自己设定的轨迹运动
在cocos2d-x2.0版本中,用贝塞尔曲线来实现. 代码如下: 运动的轨迹比较简单,自己可以加多点节点,轨迹可以更复杂.原创 2013-10-16 20:09:34 · 1146 阅读 · 0 评论 -
Sprite Kit Manual Movement(2)
There are two ways to make a sprite move in Sprite Kit. The first, which you might have noticed in the last chapter if you looked at the template code provided by Apple, is to use a concept calledacti转载 2013-11-04 20:57:22 · 593 阅读 · 0 评论 -
Sprite Kit -- Sprite (3)
Now,Getting started创建一个基于SpriteKit Game模板的iOS项目—ZombieConga.项目模板的基本介绍在此略过~In Sprite Kit, a single object called a scenecontrols each “screen” of your app. A sceneis a subclass转载 2013-11-04 21:11:35 · 662 阅读 · 0 评论 -
iOS手势识别的详细使用(拖动,缩放,旋转,点击,手势依赖,自定义手势)
1、UIGestureRecognizer介绍手势识别在iOS上非常重要,手势操作移动设备的重要特征,极大的增加了移动设备使用便捷性。iOS系统在3.2以后,为方便开发这使用一些常用的手势,提供了UIGestureRecognizer类。手势识别UIGestureRecognizer类是个抽象类,下面的子类是具体的手势,开发这可以直接使用这些手势识别。UITapGestur转载 2013-12-09 11:28:49 · 530 阅读 · 0 评论