Java RPG:有用的工具

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7563904/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 20:31:34  来源:igfitidea点击:

Java RPG: Useful tools

java

提问by Shane Fitzgerald

I was thinking about taking on an rpg project in Java from scratch but I have never tried doing much in the way of Java games. It's not going to be very graphically intense; it is going to be 2-D and I want to use a style similar to the older, tile-based RPGs. I was wondering if there were any useful tools that anyone thinks may help.

我正在考虑从头开始使用 Java 进行 rpg 项目,但我从未尝试过以 Java 游戏的方式做很多事情。它不会在图形上非常强烈;它将是 2-D 的,我想使用类似于旧的基于瓷砖的 RPG 的风格。我想知道是否有任何人认为可能有帮助的有用工具。

Currently, I only have Eclipse and NetBeans; any input/suggestions are appreciated! Thank you!

目前,我只有 Eclipse 和 NetBeans;任何输入/建议表示赞赏!谢谢!

采纳答案by u626866

For developing a 2D Java game from scratch, a good 2d game engine is still needed.

从头开始开发 2D Java 游戏,仍然需要一个好的 2D 游戏引擎。

I recommend slick, one picture that you may be interested inenter image description here(from its gallery)

我推荐slick,一张你可能感兴趣的图片在此处输入图片说明(来自它的图库)

JGameis also an option. It supports Eclipse: http://www.13thmonkey.org/~boris/jgame/eclipse.html

JGame也是一种选择。它支持 Eclipse:http://www.13thmonkey.org/~boris/jgame/eclipse.html

A good article for introducing JGame: http://www.javaworld.com/javaworld/jw-12-2006/jw-1205-games.html

介绍JGame的好文章:http: //www.javaworld.com/javaworld/jw-12-2006/jw-1205-games.html

回答by mikera

I wrote a tile-based Java roguelike/RPG many years ago using just plain vanilla Eclipse. Worked fine for me.

多年前,我仅使用普通的 Eclipse 编写了一个基于 tile 的 Java roguelike/RPG。对我来说效果很好。

Full source code here if you are interested (GPL open source):

如果您有兴趣,请点击此处的完整源代码(GPL 开源):

Nowadays I would probably also add the following tools:

现在我可能还会添加以下工具:

  • Maven (m2eclipse) - for handling dependencies / 3rd party libraries
  • EGit / Github - for source code control
  • Photoshop - for creating and touching up graphics tiles
  • Maven (m2eclipse) - 用于处理依赖项/第 3 方库
  • EGit / Github - 用于源代码控制
  • Photoshop - 用于创建和修饰图块

回答by Chris Jester-Young

I'm going to be a devil's advocate and tell you about Steve Yegge's adventures developing a Java-based RPG, named Wyvern (sadly now defunct). His view, as I understood it, was that Java made the code too complex to maintain; it got to half a million lines long, at one stage.

我将成为恶魔的拥护者,并告诉您史蒂夫·耶格 (Steve Yegge) 开发基于 Java 的 RPG 的冒险经历,该 RPG名为 Wyvern(遗憾的是现已不复存在)。据我所知,他的观点是 Java 使代码太复杂而无法维护;它在一个阶段达到了 50 万行。

Sure, you might say your game won't get that big. But don't underestimate the power of scope creep. :-)

当然,你可能会说你的游戏不会变得那么大。但不要低估范围蔓延的力量。:-)

Nevertheless, some successful games are indeed written in Java. mikera's answer is one example, as are games like Runescape or Minecraft. But still, if your game has the potential to get big, Java probably still isn't (in my opinion, and it seems Steve Yegge's also) your best choice.

尽管如此,一些成功的游戏确实是用 Java 编写的。mikera 的回答就是一个例子,Runescape 或 Minecraft 之类的游戏也是如此。但是,如果您的游戏有发展壮大的潜力,Java 可能仍然不是(在我看来,Steve Yegge 似乎也是)您的最佳选择。