Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
cocos2dx3.8サンプルエラー
auto label3 = Label::createWithTTF(ttfConfig,
"美好的一天啊美好的一天啊美好的一天啊a", TextHAlignment::LEFT, size.width * 0.75);
if(label3) {
label3->setTextColor(Color4B(255, 255, 128, 255));
label3->setPosition(Vec2(size.width * 0.1, size.height * 0.2));
label3->setAnchorPoint(Vec2(0, 0.5));
this->addChild(label3);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment