cocos2dxのお勉強。{メモ}

cocos2dxのお勉強。{メモ}

更新: 2012年9月27日

Obj-cでのコードの流れ

  1. main.mが呼ばれる。
  2. AppControllerが起動
  • GLViewの作成
  • RootViewControllerの作成
  • cocos2d::CCApplication::sharedApplication()->run();
  1. [[CCDirectorCaller sharedDirectorCaller] startMainLoop];
  2.  cocos2d::CCDirector::sharedDirector()->mainLoop();がメインループで呼ばれる。
  • CCNode

  • CCNode::scheduleで指定時間毎の処理登録

  • onEnterはstageに登録された際のトリガー。

  • ログは CCLog(“%s”,“Hello World”);的なものがCCCommonに

最新記事をフォロー

RSS Feed