Advertisement
bynaki

Rect

Mar 2nd, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. bool HelloWorld::init()
  2. {
  3.     if ( !Layer::init() )
  4.     {
  5.         return false;
  6.     }
  7.  
  8.     Rect rect = Rect(240, 160, 100, 100);
  9.     CCLOG("%f, %f, %f, %f"
  10.         , rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
  11.  
  12.     return true;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement