cocos2dxのお勉強。{メモ}
更新: 2012年9月27日
Obj-cでのコードの流れ
- main.mが呼ばれる。
- AppControllerが起動
- GLViewの作成
- RootViewControllerの作成
- cocos2d::CCApplication::sharedApplication()->run();
- [[CCDirectorCaller sharedDirectorCaller] startMainLoop];
- cocos2d::CCDirector::sharedDirector()->mainLoop();がメインループで呼ばれる。
-
CCNode
-
CCNode::scheduleで指定時間毎の処理登録
-
onEnterはstageに登録された際のトリガー。
-
ログは CCLog(“%s”,“Hello World”);的なものがCCCommonに