有哪些库可帮助创建手机 2D Java 游戏?
我想开始为手机开发 2D Java 游戏(在 J2ME 上),因此我想知道是否存在任何库或“引擎”来帮助完成各种图形任务:
- 使用像素字体绘制文本?
- 为具有多个帧的精灵绘制位图(如动画 GIF)?
- 使用代码、线条、贝塞尔曲线、洪水填充和渐变填充绘制图形?
- 精灵的排序/分层?
或者也许存在一本很棒的书,它为您提供了足够的代码示例以快速起步?
I want to begin developing 2D Java games for phones (on J2ME) therefore I'd like to know if any libraries or "engines" exist to help out in the various graphical tasks:
- Drawing text with pixel fonts?
- Drawing bitmaps for sprites with multiple frames like animated GIFs?
- Drawing graphics with code, lines, beziers, flood-filling and gradient fills?
- Ordering / layering of sprites?
Or maybe a great book exists, that gives you enough code samples to get off the ground quickly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
MIDP (JSR-118) 包括基础知识(您列出的大部分内容上面)主要在
javax.microedition.lcdui
和javax.microedition.lcdui.game
命名空间。MIDP (JSR-118) includes the basics (most of the things you listed above) mainly in the
javax.microedition.lcdui
andjavax.microedition.lcdui.game
namespaces.我自己没有使用它,但在此处上听到了一些很好的参考。
这里甚至是您可能需要的库列表。
I didn't use it myself, but heard some good reference on here.
And here is even a list of libraries, you might need.
几年前,David Brackeen 出版了一本书,名为 用 Java 开发游戏。
其中涵盖了纯 Java 中 2d 和 3d 开发的基础知识,以及如何处理时间跳跃和更新游戏角色的物理属性。这是对该主题的一个很好的介绍。
There was a book released quite a few years ago called Developing Games in Java by David Brackeen.
That covers the basics of 2d and 3d development in pure Java as well as how to handle time jumps and update the physical properties of your game characters. It is a good introduction to the topic.