现在的位置: 首页 > 综合 > 正文

cocos2d-x程序流程

2013年08月30日 ⁄ 综合 ⁄ 共 367字 ⁄ 字号 评论关闭

1、create the application instance

2、Main message loop

3、Initialize instance and cocos2d

>>  initialize director     // scheduler    action manager      touchDispatcher        KeypadDispatcher    create autorelease pool

>> turn on display FPS

>>set FPS. the default value is 1.0/60 

>>create a scene. it's an autorelease object

>>runwithscence

4、CCDirector::sharedDirector()->mainLoop();

>>drawScene

>>release the objects

抱歉!评论已关闭.