什么是开源 Java 游戏的好例子?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/374523/
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-08-11 13:59:46  来源:igfitidea点击:

What's a good example of an open-source Java-game?

javaopen-source

提问by Mnementh

A good starting point for an own project is to take a look at other code for the same field of problem. So which java-games in open-source you would recommend for a look in the source? Which game helps best to learn some techniques for creating games especially in the Java-environment?

对于自己的项目,一个好的起点是查看同一领域问题的其他代码。那么你会推荐哪些开源的java游戏来查看源代码?哪种游戏最有助于学习一些创建游戏的技术,尤其是在 Java 环境中?

采纳答案by Ola Eld?y


(source: freecol.org)


(来源:freecol.org

FreeCol- based on Sid Meier's Colonization.

FreeCol- 基于席德梅尔的殖民化

回答by Chris Jester-Young

This doesn't directly answer your question, but if you ever decide you want to try writing a game in JavaFX, the JavaFX site has a bunch of sample code, including a couple of games (as of current writing).

这并不能直接回答您的问题,但是如果您决定尝试用JavaFX编写游戏,JavaFX 站点有一堆示例代码,包括几个游戏(截至当前写作)。

回答by Simon Groenewolt

It would help if you specified what kind of game you want to build - game type and whether you want to go 2d or 3d.

如果您指定了要构建的游戏类型——游戏类型以及是 2d 还是 3d,这将有所帮助。

But to answer your question: have a look at the Lightweight Java Game Library (http://lwjgl.org/) There is a list of projects on their web site of which some are open source.

但是要回答你的问题:看看轻量级 Java 游戏库 ( http://lwjgl.org/) 在他们的网站上有一个项目列表,其中一些是开源的。

回答by Michel

You could look at Jake 2which is a reimplementation of the Quake 2 engine in Java. This could be a good starting point for a 3D game.

您可以查看Jake 2,它是用 Java 重新实现的 Quake 2 引擎。这可能是 3D 游戏的良好起点。

回答by Brian

I wonder if http://sourceforge.net/projects/creepsmash/would be a good choice. It was built by a team of computer science students in order to simulate a "real" commercial-style project. Thus, they used things like version control, build tools, and unit testing. Probably a better project to learn from then most, since that was its purpose. Yet the game is rather entertaining and plenty of people play it for fun. Not sure how much of its documentation is in English, though.

我想知道http://sourceforge.net/projects/creepsmash/是否是一个不错的选择。它是由一组计算机科学学生建造的,目的是模拟一个“真正的”商业风格的项目。因此,他们使用了诸如版本控制、构建工具和单元测试之类的东西。可能是当时最值得学习的一个更好的项目,因为这就是它的目的。不过这款游戏还是蛮好玩的,很多人都玩的很开心。不过,不确定它的文档中有多少是英文的。

回答by Bob Cross

You could do worse than using Wyvern as an example. There's an added bonus that you are starting with something that comes largely from the mind of Steve Yegge.

你可以做得比使用Wyvern 作为例子更糟糕。还有一个额外的好处是,您从主要来自史蒂夫·耶格( Steve Yegge)的想法开始。