我应该使用什么技术来编写我的游戏? [英] What technology should I use to write my game?

查看:81
本文介绍了我应该使用什么技术来编写我的游戏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对3D网络游戏有一个很好的主意,并且得出的结论是,可以像Java小程序一样将其作为小程序编写在Web浏览器中,并将其存在于Web浏览器中.而且外观和感觉都一样.

I have a great idea for a 3D network game, and I've concluded that it is possible to write it in Java as an applet which will live under the web browser, just like a full software in C++. And it will look and feel the same.

基于C ++的Java的主要优点是,使用Java,您无需下载任何软件即可玩游戏.我已经考虑过下载图形,声音等,但是我找到了解决方案. RuneScape 仅证明是可能的.

The main advantage of Java on C++ is that with Java you can play without downloading any software. I have already thought about the download of the graphics, sound, etc but I found a solution for it. RuneScape just proves that it is possible.

所以我的第一个问题是,我的游戏应该在网络浏览器上还是在操作系统上运行??我认为在网络浏览器中,它更可移植,尽管您需要安装Java和其他东西. .但是事实是,大多数MMO游戏目前不在在网络上.如果您建议使用软件,那么请建议使用一种语言-C ++或诸如Python或C#之类的生产力更高的语言?

So my first question is, should my game live on a web browser or on the operating system? I think that in a web browser it is much more portable, although you need install Java and stuff. But the fact is, that most MMO games are currently not in the web. If you suggest in a software so please suggest a language either - C++ or something more productive like Python or C#?

因此,选择一种语言后,我需要一个图形解决方案.我应该直接用OpenGL/DirectX编写还是使用游戏引擎? 我应该使用什么游戏引擎?食人魔? jMonkeyEngine?

So after choosing a language, I need a graphics solution. Should I write directly with OpenGL/DirectX or use a game engine? What game engine should I use? Ogre? jMonkeyEngine?

您对此有何看法?

谢谢!

P.S:请不要使用使用您所知道的内容"之类的答案.

P.S: Please don't use answers like "Use what you know".

推荐答案

尽管您有最后一点,请尽一切可能,并尽可能提供最大的用户基础.

Despite your last point, use whatever you can, and what will provide the biggest user base possible.

Applet很旧,不再像以前那样被广泛使用. Flash或Silverlight现在是网络游戏的标准".根据您对使用Java的兴趣,可能值得检查 JavaFX ,据说它可以替代应有的applet.我实际上并没有使用过JavaFX,也听不到关于它的更多信息,请按照您的意愿进行操作.如您所说,部署到Web上的最大好处是用户群更大,人们更有可能玩您的游戏.缺点是您最终会在开发过程中使用Flash之类的工具或类似工具.

Applets are old, and no longer used as extensively as they used to. Flash or Silverlight are the "standard" for web games now. It may be worth checking out JavaFX based your interest in using Java, it's supposedly a replacement for what applets should have been. I've not actually used JavaFX, nor do I hear much about it, take that as you wish. The biggest benefit of deploying to the web is as you've said, the user base is larger and people are more likely to give your game a play. The downside is that you end up using the likes of Flash or equivalent for the development process.

如果沿着构建独立应用程序的路线前进,则可以使用任何您想要的东西. C ++,Java,C#,Python等都是可行的选择.您可以使用大多数语言制作游戏. C ++是行业标准,但忽略此事实.如果您是业余爱好者,则可以用任何语言制作出精美的外观和表演游戏.我要说的是,除非您要打造下一个成功之路,否则可以避免使用C ++.与Web应用程序相比,您的用户将需要使用的框架/API.例如,他们将需要OpenGL/DirectX/XNA等.至于XNA,DirectX和OpenGL?没关系,您的语言选择很可能会决定您对图形API/框架的选择.因此,我将把这一点留给您自己进行研究.

If you go down the route of building a standalone application, you can use whatever you want. C++, Java, C#, Python and so on are all viable options. You can make games in most languages. C++ is the industry standard but ignore this fact. You can make amazing looking and performing games in any language if you are a hobbyist developer. What I'm trying to say is that unless you are building the next big hit, using C++ can be avoided. In contrast to web applications, your users will require a framework/API that you use. For example, they'll need OpenGL/DirectX/XNA and so forth. As for XNA vs DirectX vs OpenGL? It matters not, your language choice will most likely dictate your choice of graphics API/Framework. So I'll leave this point up to yourself for research.

至于您应该使用引擎吗?这取决于.

As for should you use an engine? It depends.

  • 您是否在制作一款足以保证​​引擎性能的游戏?
  • 您只想专注于游戏,而不是引擎吗?
  • 您对学习现有引擎感到满意吗?
  • 您是否愿意自己生产所需的组件(碰撞等)?

其他因素也会影响到这一点,但也许值得关注一下手头的游戏.您可以轻松编写一个足够简单的引擎来满足您的需求.这样,您将避免许可和部署问题.

Other factors come into this, but it may be worth just focusing on the game at hand. You can easily write a simple enough engine for what you require. By doing this, you'll avoid licensing and deployment issues.

这篇关于我应该使用什么技术来编写我的游戏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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