What libraries are available to help create 2D Jav

2019-03-21 01:59发布

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?

alt text

3条回答
劫难
2楼-- · 2019-03-21 02:31

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.

查看更多
女痞
3楼-- · 2019-03-21 02:43

MIDP (JSR-118) includes the basics (most of the things you listed above) mainly in the javax.microedition.lcdui and javax.microedition.lcdui.game namespaces.

查看更多
Deceive 欺骗
4楼-- · 2019-03-21 02:57

I didn't use it myself, but heard some good reference on here.

And here is even a list of libraries, you might need.

查看更多
登录 后发表回答