我需要用这样的图形获取Android游戏? [英] What I need to get android game with graphics like this?

查看:93
本文介绍了我需要用这样的图形获取Android游戏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了几个android应用程序,但只使用常规布局和视图。
现在我正在尝试学习一款开发游戏,并且我明白我需要使用自定义绘图来绘制或打开gl以获得更好的图形和性能。
我不知道从哪里开始。
例如,要获得像这样的图形(请参阅附件)是否足够,或者我应该学习Open GL,还是只能通过unity或libgdx来实现?




解决方案

这看起来像一个非常简单的游戏。一些图片,一些动画可以移动它们,还有可能是一些粒子效果(庆祝烟花等)。你会得到这些图像,然后使用像unity这样的游戏引擎或像libgdx或monodevelop这样的框架。

我对Unity和libgdx都有经验(类似于monodevelop和XDA)。我建议你仅仅因为编辑而使用统一。这是我认为在unity和libgdx比较中没有提及的东西。统一编辑器可以让你以比使用像libgdx这样以代码为中心的环境更快速地对游戏进行原型设计。有一个称为Overlap2D的libgdx的开源编辑器,但它当然没有太多功能。为了将编辑器中的场景加载到游戏中,它使用了一个名为Ashley的实体组件系统(就像unity一样)。类似于统一,基本上就是模仿它。



只有当您是一位经验丰富的开发人员并且需要libgdx提供的低级别控制级别时,才会推荐使用libgdx,或者如果你只是想学习。学习和获得较低级别的工作经验是很好的,比如管理游戏循环和资产。

另外一些人建议只用于3D游戏。几年前这种情况就是这样,但现在他们有官方的2D支持,所以现在对于2D游戏来说非常好。编辑器的工作原理与3D游戏相同。他们甚至还内置2D物理编辑器(为图像分配对撞机,在碰撞机之间创建关节等)。


I've created a few android apps but using just regular layouts and views. Now I am trying to learn a game developing and I understand that I need to use either custom drawings to canvas or open gl to get better graphics and performance. I just can't quite figure out where to start. For example, to get graphics like this (see attachments) is drawing to canvas is enough, or should I learn Open GL, or is it only achievable with things like unity or libgdx?

解决方案

This looks like a pretty straightforward game. A few images, a few animations to move them around, and possibly some particle effects (celebration fireworks, etc). You would get the images and then use a game engine like unity or a framework like libgdx or monodevelop.

I have experience with both Unity and libgdx (which is similar to monodevelop and XDA). I would suggest you use unity just because of the editor. This is something that I think isn't mentioned as much in the unity vs libgdx comparisons. The unity editor will allow you to prototype the game visually MUCH quicker than using a code-focused environment like libgdx. There is an open source editor for libgdx called Overlap2D but it of course doesn't have nearly as many features. For loading the scene from the editor into your game it's using an entity component system (just like unity) called Ashley. In similar to unity and is basically mimicking it.

I would recommend using libgdx only if you're an experienced developer and require the level of low level control libgdx provides, or if you just want to learn. It's good to learn and get experience with working at a lower level, such as managing the game loop and assets yourself.

Also some recommend unity only for 3D games. This was the case couple years ago, but now they have official 2D support, so it's pretty good for 2D games now. The editor works the same as for 3D games. They even have a 2D physics editor built in (assigning colliders to images, creating joints between colliders, etc).

这篇关于我需要用这样的图形获取Android游戏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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