Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool HelloWorld::init()
- {
- if (!Layer::init())
- {
- return false;
- }
- auto label = Label::createWithSystemFont("Hello\nWorld!!"
- , "Monaco", 34, Size(150, 150), TextHAlignment::LEFT);
- label->setPosition(Point(240, 160));
- this->addChild(label);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement