Cocos2d-x标签
1.LabelTTF(基于系统文字):
auto label = Label::createWithSystemFont(“Hello World”,“Arial”,64,Size(150,150),TextHAlignment::LEFT,TextVAlignment::TOP);//静态create函数
label->setPosition(Vec2(origin.x+visibleSize.width/2,origin.y+visibleSize.height-label->getContentSize().height));
this->addChild(label,1);
auto label=Label::createWithTTF();//基于非系统文字
static LabelTTF* create(const std::string &string,
const std::string &fontName,
float fontSize,
const Size &dimensions = Size::ZERO,
TextHAlignment hAlignment = TextHAlignment::CENTER,
TextVAlignment vAlignment = TextVAlignment::top)
2.LabelAtlas(基于图集的标签):
auto