Flow of Code in HelloWorld Sample.

Flow of Code in HelloWorld Sample.
0.0 0



HelloWorld Sample is working Fine in Android, I am Confused in Flow of Code .
Have you guys come across any Article or Video which explains the flow of code of any cocos2d-X Program?



Most engine codes share in all platform. So you can use VS or XCode to debug HelloWorld step by step, than you can get the flow.


Thanks for your Reply.

Can you please mention the function Call hierarchy from Java to C++ untill AppDelegate::applicationDidFinishLaunching() method.

after AppDelegate::applicationDidFinishLaunching() method I am comfortable in Tracing Code.


org.cocos2dx.lib.Cocos2dxRenderer.onSurfaceCreated() calls nativeInit() implemented in jni/helloword/main.cpp. The function does some initialization work.
org.cocos2dx.lib.Cocos2dxRenderer.onDrawFrame() was called every frame, and it call the mainloop of cocos2dx. The function declared with “private static native void” are native interface, you can search where they are implemented.


Thanks alot. You are awesome.