Skip to content

Instantly share code, notes, and snippets.

@lamlambda
Created January 26, 2016 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lamlambda/4032710d36a6fc2aed64 to your computer and use it in GitHub Desktop.
Save lamlambda/4032710d36a6fc2aed64 to your computer and use it in GitHub Desktop.
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