简体   繁体   English

适合Java的2d引擎?

[英]A good 2d engine for Java?

有没有人知道一个很好的2D引擎的Java与精灵,动画和碰撞处理?

JGame is probably what you're looking for. JGame可能就是你想要的。

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. 您可能还想查看这个问题( https://stackoverflow.com/questions/293079/java-2d-game-frameworks ),其中包含一些Engines列表以及对其中一些的一些反馈。 Hope it's helpful. 希望它有用。

Slick2D seems to be a pretty solid choice. Slick2D似乎是一个非常可靠的选择。

It's widely used and it is based on OpenGL (via LWJGL ) so you can get some pretty good performance if you need it. 它被广泛使用,它基于OpenGL(通过LWJGL ),因此如果您需要它可以获得一些非常好的性能。

Greenfoot , from the makers of BlueJ , would be a good choice if it is your first time with game-development in Java. 来自BlueJ制造商的Greenfoot如果是第一次使用Java进行游戏开发,那将是一个不错的选择。 It is not even an easy-to-learn API, but also comes with a development-environment with fully integrated Greenfoot surface. 它甚至不是一个易于学习的API,而且还带有一个完全集成的Greenfoot表面的开发环境。

The game-environment is the greenfoot.World while every element in the game is a greenfoot.Actor instance. 游戏环境是greenfoot.World而游戏中的每个元素都是greenfoot.Actor实例。 The Actor class provides a method for true bitmap-intersection ( greeenfoot.Actor.intersects() ). Actor类提供了一种真正的位图交集方法( greeenfoot.Actor.intersects() )。

  • jGame jGame
  • Arianne 阿里安娜

Tangent: You'd be better off branching away from Java. Tangent:你最好远离Java。 The game development industry is C++/Python heavy, with C# in third. 游戏开发行业的C ++ / Python很重,C#排在第三位。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM