效果图
RotateNode.h
//
// RotateNode.h
// 转动菜单
//
// Created by 杜甲 on 13-9-23.
//
//
#ifndef ________RotateNode__
#define ________RotateNode__
#include "cocos2d.h"
USING_NS_CC;
class RotateNode:public CCLayerColor{
public:
CREATE_FUNC(RotateNode);
virtual bool init();
CCSprite* player1;
CCSprite* player2;
CCSprite* player3;
CCSprite* player4;
CC_SYNTHESIZE(CCPoint, circleCenter, CircleCenter);
void ccTouchesMoved(cocos2d::CCSet *pTouches, cocos2d::CCEvent *pEvent);
cocos2d::CCArray circlayerOutAlogrithm(cocos2d::CCPoint centerPoint,int radius);
};
#endif /* defined(________RotateNode__) */

该博客展示了如何在cocos2d-x框架下为iOS平台创建一个能够触摸旋转的键盘,提供了相关代码实现和效果图。
最低0.47元/天 解锁文章
1189

被折叠的 条评论
为什么被折叠?



