使用了cocos2d-X在Eclipse上的Andr​​oid系统如何提示编程提示、使用了、系统、cocos2d

由网友(莫欺哥是一個穷小孒╯)分享简介:我开始用的cocos2d-X为Android手机开发。我跟这两个教程整合C $ CS源$为的Hello World游戏,并能够调试(Java和C ++ codeS)在Eclipse上。 I'm starting developing with cocos2d-x for Android phones.I have...

我开始用的cocos2d-X为Android手机开发。 我跟这两个教程整合C $ CS源$为的Hello World游戏,并能够调试(Java和C ++ codeS)在Eclipse上。

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 /开发与 - 的cocos2d-X换机器人上Linux的/ 的http://博客.plicatibu.com /如何调试的-的cocos2d-X向和Java的code-使用月食/

这一切都运作良好,我可以运行/调试两个codeS,但我不知道如何开始编程。

It's all working well, I can run/debug both codes, but I don't know how to start programming.

有内JNI一个HelloWorld文件夹,它有一个main.cpp中。 我应该创建的HelloWorld文件夹中我的游戏类?因为我注意到,所有的源文件(.H和.cpp)的Eclipse项目(在类文件夹)之外。所以,我想知道,如果有人有经验的可以帮我开始。

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.

谢谢!

推荐答案

我解决了! 下面的教程后,我去项目属性,然后C / C ++常规 - >路径和符号,在源位置选项卡,我已经添加了的cocos2d-X脚本生成的类文件夹中自动创建一个新的项目。< BR> 而要解决一个问题,宏,在Eclipse preferences,C / C ++ - >索引,我只是检查在编辑器中打开索引源和头文件,现在它就像一个魅力;)

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 ;)

阅读全文

相关推荐

最新文章