C++之旅 QQ群:201704374
伸手党的救星,1T资料等你来战
一、显示文字的控件
1、CCLabel
2、CCLabelTTF
3、CCLabelAtlas
二、文字显示实现
1、CCLabel
#ifndef __T07CCLabel_H__
#define __T07CCLabel_H__
#include "cocos2d.h"
USING_NS_CC;
class T07CCLabel : public CCLayer
{
public:
static CCScene* scene();
CREATE_FUNC(T07CCLabel);
bool init();
bool ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent);
void ccTouchMoved(CCTouch *pTouch, CCEvent *pEvent);
};
#endif
#include "T07CCLabel.h"
static const char* _font