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
本文详细解析了Cocos2d-x游戏引擎的启动流程,包括创建应用实例、初始化导演、设置FPS等关键步骤,并介绍了如何创建场景及运行主循环。
1262

被折叠的 条评论
为什么被折叠?



