用于 Android 游戏开发的 Cocos2D 或 libgdx
我只是想知道,从长远来看,使用这些引擎中的哪一个会更好。虽然我觉得使用Cocos2D会是一个更好的选择,因为它也可以用于iphone开发,但是只有1个教程http://dan.clarke.name/2011/04/how-to-make-a-simple-android-game-with-cocos2d/ 我到目前为止找到了。 另一方面,libgdx 有一本完整的书。
I just want to know, that in the long run, using which of these engines will be better. Although I feel that using Cocos2D will be a better option, as it can also be used for iphone development, there's just 1 tutorial http://dan.clarke.name/2011/04/how-to-make-a-simple-android-game-with-cocos2d/ which I've found so far.
libgdx, on the other hand has a complete book.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
我也会推荐 libgdx。它看起来比AndEngine更有前途。
I will suggest libgdx too. It looks more promising than AndEngine.
我尝试过 Andengine 和 libgdx。没试过cocos2d。 Andengine 的表现确实很差。我使用 libgdx 的主要优点是,您可以在桌面上运行应用程序,而不是在模拟器或设备上运行,这使得迭代时间更快,这对于游戏开发至关重要。如果cocos2d能做到这一点,那么我认为使用是公平的,但是快速迭代绝对是libgdx与Andengine的不同之处。
I've tried both Andengine and libgdx. Have not tried cocos2d. Andengine performed really poorly. The main advantage I get with using libgdx is that you can run your app on the desktop rather than on an emulator or device, which makes iteration times much faster, which is essential for game development. If cocos2d can do this, then I think it's fair to use, but rapid iteration is definitely what sets libgdx apart from Andengine.
我目前正在开发一款游戏,我从 cocos2d 开始。我在它的坐标系上遇到了困难。然后我尝试了AndEngine,它很好,但我担心性能。所以我切换到 libGDX,我对此很满意。它可能看起来有点低级,但我认为您最终会从其他引擎切换到 libGDX。
i'm currently developing a game and i started with cocos2d. I struggled with it's coordinate system. Then i tried AndEngine, it was nice, but i was afraid of performance. So i switched to libGDX and im happy with it. It might look a little low level, but i think that you'll switch from other engines to libGDX eventually.
我是 Android 游戏开发和 libGdx 的新手。
根据我 3 个月的经验,libGdx 非常有趣。
很多演示、不错的文档和论坛。
Coco2d 似乎停止开发,主要开发人员已改为使用 libGdx。
所以我想 libGdx 可能是更好的选择。
I am a newbie to both android game develop and libGdx.
By my 3 month experience, libGdx is quite fun.
Lots of demo, not bad document, and forum.
And Coco2d seems stop developing and the main developer has changed to use libGdx.
So I guess libGdx maybe a better choice.
考虑使用 AndEngine。从 libgdx 的简短观察来看,它们似乎很相似(尽管 AndEngine 仅是 2D)。然而,AndEngine 拥有 2D 游戏所需的一切。它唯一缺少的是文档,但它是开源的 - 如果您没有得到什么,请查看 代码。
这里有一个活跃的论坛,还有一个AndEngine 的 SO 标签,因此您也可以在这里提问。
它还具有许多有用附加组件的扩展,例如物理引擎 Box2D,它是使用的 2D 跨平台物理引擎对于许多知名游戏(例如,愤怒的小鸟使用它)。它还支持TMX平铺地图,界面非常简单(实际上这就是我现在正在开发的游戏,使用AndEngine TMX实用程序非常容易)。
所以..在你选择 cocos2d 或 libgdx 之一之前,看看 AndEngine :)
@Greg 这不是真的......
根本几乎没有javadoc。但论坛上充满了教程,网络上也是如此。
编辑:从您对 Greg 的回答的评论来看,如果您正在寻找简单的开发,AndEngine 是一个不错的选择。从 cocos2d 教程代码来看,它似乎比 AndEngine 的代码复杂得多,而且不太直观。
Consider using AndEngine. From a short look at libgdx, they seem similiar (Although AndEngine is 2D only). However, AndEngine has everything you need for a 2D game. The only thing it lacks is documentation, but it is open source - if you don't get something, take a look at the code.
There is an active forum here, and there is also a SO tag for AndEngine, so you can ask questions here too.
It also has many extensions for useful add-ons, like the physics engine Box2D which is a 2D cross platform physics engine used for many well known games (For example, Angry Birds uses it). It also supports TMX tiled maps, with a pretty easy interface (Actually that's the game I'm developing now, it's really easy to use the AndEngine TMX utillities).
So.. before you pick one of cocos2d or libgdx, take a look at AndEngine :)
@Greg That's not true...
There is almost no javadoc at all. But the forums are full with tutorials, and so is the web.
EDIT: From your comment at Greg's answer, if you are looking for easy developing, AndEngine is a good choice. From taking a look at that's cocos2d tutorial code, it seems much more complicated and less intuitive than AndEngine's code.
我目前使用
libgdx
来实现box2d
物理效果,还使用 cocos2d
来进行绘图和场景。它非常有用,我强烈推荐它。I am currently using
libgdx
for thebox2d
physics and alsococos2d
for drawing and scenes. It is very useful and I highly recommend it.而且引擎仅供学生使用,很容易学习,有很多例子,但性能很糟糕,而且无法修复。 :( 如果你继续使用 andengine 来开发商业游戏,你会失望的
andengine is only use for student,it easy to learning,hava alot of example but the performance very terribel,and it can not fix. :( if u continue using andengine for developing commercial game,u will be disapointed