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