Cocos2D 或 libgdx 用于 Android 游戏开发 [英] Cocos2D OR libgdx for Android Game Development

查看:14
本文介绍了Cocos2D 或 libgdx 用于 Android 游戏开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道,从长远来看,使用这些引擎中的哪一个会更好.虽然我觉得使用 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.

推荐答案

考虑使用 AndEngine.简单看一下 libgdx,它们看起来很相似(尽管 AndEngine 只是 2D 的).然而,AndEngine 拥有 2D 游戏所需的一切.它唯一缺少的是文档,但它是开源的——如果你没有得到什么,看看 代码.

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.

这里有一个活跃的论坛,还有一个SO tag for AndEngine,所以你也可以在这里提问.

There is an active forum here, and there is also a SO tag for AndEngine, so you can ask questions here too.

它还有许多有用的插件扩展,例如物理引擎 Box2D,它是一个 2D 跨平台用于许多知名游戏的物理引擎(例如,愤怒的小鸟使用它).它还支持 TMX 平铺地图,界面非常简单(其实这就是我现在正在开发的游戏,使用 AndEngine TMX 实用程序真的很容易).

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

所以.. 在你选择 cocos2d 或 libgdx 之前,先看看 AndEngine :)

So.. before you pick one of cocos2d or libgdx, take a look at AndEngine :)

@Greg 这不是真的......

@Greg That's not true...

它易于学习和良好的文档化引擎

It is easy to learn and good documented engine

all 中几乎没有 javadoc.但是论坛上到处都是教程,网络也是如此.

There is almost no javadoc at all. But the forums are full with tutorials, and so is the web.

根据您对 Greg 回答的评论,如果您正在寻找易于开发的内容,AndEngine 是一个不错的选择.看了cocos2d的教程代码,感觉比AndEngine的代码复杂很多,直观性差很多.

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.

这篇关于Cocos2D 或 libgdx 用于 Android 游戏开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆