基于 Java Swing 的游戏框架.有什么建议吗?
我正在使用 Java Swing 框架开发游戏.有谁知道基于 Swing 的好框架?我主要关心重绘的性能.
I'm developing game using Java Swing framework. Does anyone know good framework based on Swing? Mostly I care about performance of redrawing.
推荐答案
Swing 适合简单的游戏,但如果你真的关心重绘的性能,你可能应该看看其中一个基于 OpenGL 的框架.例子:
Swing is fine for simple games, but if you really care about performance of redrawing, you should probably take a look at one of the frameworks based on OpenGL. Examples:
- http://www.lwjgl.org/ - 相当低级的库,但速度非常快.基本上是原始的 OpenGL.
- http://www.slick2d.org/ - 一个流行且相当容易使用的 2D 游戏库.
- http://jmonkeyengine.com/ - 如果您想要一个完整的 3D 引擎,这是一个不错的选择.
- http://www.lwjgl.org/ - quite a low level library but very fast. basically raw OpenGL.
- http://www.slick2d.org/ - a popular and fairly easy to use 2D game library.
- http://jmonkeyengine.com/ - a good choice if you want a full 3D engine.
特别是,如果您想做更复杂的效果(例如大量颜色、阴影、透明效果),那么您可能需要 OpenGL.
In particular, if you want to do more complex effects (lots of colours, shading, transparency effects for example) then you will probably need OpenGL.
相关文章