bynaki

createWithTTF

Mar 3rd, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. bool HelloWorld::init()
  2. {
  3.     if (!Layer::init())
  4.     {
  5.         return false;
  6.     }
  7.  
  8.     auto label = Label::createWithTTF("Hello World"
  9.         ,"Futura Extra Bold.ttf", 34);
  10.     label->setPosition(Point(240, 160));
  11.     this->addChild(label);
  12.  
  13.     return true;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment