Is Cocos2d-x a good development platform for games? [closed]

喜你入骨 提交于 2019-12-13 04:43:27

问题


I have just learnt Cocos2d, but i am not an expert on it. But a friend told me to learn Cocos2d-x. Should i prefer Cocos2d-x on Cocos2d? I have heard the technologies which are used Multiplatforms developments are not as good as the native's. Can someone help in this regard? Any input will be appreciated.


回答1:


Cocos2d-x:

Cocos2d-X is a game engine framework based on Cocos2d-iPhone, which consists of expanding supported platforms, with multiple choice of programming languages thats shares the same API structure.

Programmers can choose to use their preferred language to achieve their targeted platform Native branch written in C++, with a little Java and Objective-C. Lua and javascript are binded as scripting language. HTML5 branch, also known as cocos2d-html5, is written in Javascript, that focuses on desktop browsers XNA port, is written in C#, focus on Windows Phone 7 and XNA.

If your aim is iPhone/iPad you should stick with Cocos2d. There is OpenGL ES, but the learning curve would make you take a lot of time to learn the basics and then start doing more complex stuff. Cocos2d is an abstraction build on top of OpenGL ES, which will make you start getting results quite fast. In my opinion, Cocos2d is a good choice. There also lot's of information on the internet comparing both alternatives and others.




回答2:


I think, any cross-platform framework have it's own restrictions. I think, that if you are already familiar with objective-c, you should use cocos2d-iphone. If you are more familiar with c++, you can use cocos2d-x.

As for me, I tried both these frameworks, and can say, that cocos2d-iphone is much more faster for the development because of using many native objective-c things, that cannot be used in c++. I don't say, that C++ is a bad language, just it is too uncomfortable for me.

Both frameworks has the same structure, so you can migrate freely later. Your can improve your knowledge of cocos2d on any of these two frameworks



来源:https://stackoverflow.com/questions/11205877/is-cocos2d-x-a-good-development-platform-for-games

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