I’m starting developing with cocos2d-x for Android phones.
I have followed these two tutorials to integrate the source codes for the Hello World game, and be able to debug (Java and C++ codes) on Eclipse.
http://blog.plicatibu.com/developing-with-cocos2d-x-for-android-on-linux/
http://blog.plicatibu.com/how-to-debug-cocos2d-x-and-java-code-using-eclipse/
It’s all working well, I can run/debug both codes, but I don’t know how to start programming.
There’s a helloworld folder inside jni and it have a main.cpp.
Should I create my game classes inside the helloworld folder? Because I’ve noticed that all the source files (.h and .cpp) are outside the eclipse project (on the Classes folder). So I wanna know if someone more experienced can help me to start.
Thanks!
I solved it!
After following the tutorials, I went in the project properties then C/C++ General->Paths and Symbols, in the Source location tab, I’ve added the Classes folder auto generated by the cocos2d-x script to create a new project.
And to solve a problem with macros, in Eclipse Preferences, C/C++ -> Indexer, I just checked Index source and header files opened in editor, and now it works like a charm 😉