Where can I find a good tutorial to start programming using Cocos2D-x? [closed]

夙愿已清 提交于 2020-01-24 09:37:26

问题


I have some problems to start programming using cocos2D on linux + android.

I use the stable release 0.12.0 (2012-03-05)

  • I compile create-linux-eclipse-project.sh correctly
  • It create a TestCocos2D project on the same path
  • I import the android project to Eclipse
  • I run project and i get the hello world.

But i don't know where start programming the scenes, the director, and how to use it.

I have tried This tutorial but is too old. I can't use the official tutorial because i don' t know where use the code.

Some advice/tutorials to start please?

SOLUTION:

If you are here looking for tutorials, try THIS LINK


回答1:


cocos2d - android is not updated anymnore. If you are already using Cocos2d-x = crossplatform, you must know that, differently from iOS, in Android you program directly on cpp. The eclipse project uses makefiles to compile the code in cpp, but that code is not with $YOURCOCOS2DPROJECT>android path, it's inside the Classes that Android.mk, compiles the code when uses the eclipse project, and you must put your director, scene and layers over there.




回答2:


I won't prefer Cocos2d for Android because Cocos2d has not released a stable version of it for a long time. I don't think they are adding more support to it in future. Instead go for Cocos2d-x. For more info go to http://www.cocos2d-x.org/

You can create ios+Android game at one go. :)



来源:https://stackoverflow.com/questions/9979795/where-can-i-find-a-good-tutorial-to-start-programming-using-cocos2d-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!