问题
I've developed a number of applications using Cocos2d-x on the iOS platform.
I have always placed the loading of resources, preloading of audio, and initialization of system components into the AppDelegate::applicationDidFinishLaunching() function, or had it call the initialization routine from there. This was because this is the place where the first main scene for the application is selected and loaded into the CCDirector.
Recently, one of my tutorials was ported to Windows and it appears this was not being called. Perhaps it does not even exist in Android or other target platforms for cocos2d-x (I only deal with one for now).
Is there a common location across all platforms where cocos2d-x expect you to place the "Application Initialization" code?
来源:https://stackoverflow.com/questions/20743976/where-should-system-initialization-methods-be-placed-in-cocos2d-x