一个好的 Java 2d 引擎?
有谁知道一个好的 Java 2D 引擎,具有精灵、动画和碰撞处理功能?
Does anyone knows a good 2D engine for Java with sprites, animations and collisions handling?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
JGame 可能就是您正在寻找的。
您可能还想查看这个问题( https://stackoverflow.com/questions/293079/java- 2d-game-frameworks ),其中有一个引擎列表以及对其中一些引擎的一些反馈。 希望它有帮助。
JGame is probably what you're looking for.
You might also want to check out this question ( https://stackoverflow.com/questions/293079/java-2d-game-frameworks ) that has a list of Engines out there and a bit of feedback on some of them. Hope it's helpful.
Slick2D 似乎是一个相当不错的选择。
它被广泛使用,并且基于 OpenGL(通过 LWJGL),因此如果需要,您可以获得一些相当好的性能它。
Slick2D seems to be a pretty solid choice.
It's widely used and it is based on OpenGL (via LWJGL) so you can get some pretty good performance if you need it.
Greenfoot,来自 BlueJ,如果您是第一次使用 Java 进行游戏开发,将是一个不错的选择。 它甚至不是一个易于学习的 API,但还配备了完全集成 Greenfoot 表面的开发环境。
游戏环境是
greenfoot.World
而游戏中的每个元素都是greenfoot.Actor
实例。 Actor 类提供了真正位图相交的方法 (greenfoot.Actor.intersects()
)。Greenfoot, from the makers of BlueJ, would be a good choice if it is your first time with game-development in Java. It is not even an easy-to-learn API, but also comes with a development-environment with fully integrated Greenfoot surface.
The game-environment is the
greenfoot.World
while every element in the game is agreenfoot.Actor
instance. The Actor class provides a method for true bitmap-intersection (greeenfoot.Actor.intersects()
).Tangent:您最好远离 Java。 游戏开发行业以 C++/Python 为主,C# 排名第三。
Tangent: You'd be better off branching away from Java. The game development industry is C++/Python heavy, with C# in third.