SHARE
TWEET

applicationDidFinishLaunching

a guest Mar 25th, 2014 550 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bool AppDelegate::applicationDidFinishLaunching() {
  2.     Director* director = Director::getInstance();
  3.     EGLView* eglView = EGLView::getInstance();
  4.  
  5.     director->setOpenGLView(eglView);
  6.    
  7.     // load config
  8.     GameConfig::sharedInstance()->load();
  9.     GameConfig::sharedInstance()->loadFilePaths();
  10.    
  11.     Localized::load();
  12.    
  13.     director->setDisplayStats(false);
  14.     director->setAnimationInterval(1.0 / 60);
  15.    
  16.     Scene *scene = MainMenuLayer::scene();
  17.  
  18.     director->runWithScene(scene);
  19.    
  20.     return true;
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top