clash of clans 用手指拖动房子,改变房子的位置,碰到别的房子会变红,可以放置的地方放置下来会变绿,想实现这个效果,没思路,怎么办
手机游戏 cocos2d
------解决方案--------------------
最底层研究touches事件
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
想要简单点的,用手势