问题
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?
回答1:
I didn't use it myself, but heard some good reference on here.
And here is even a list of libraries, you might need.
回答2:
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.
回答3:
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.
来源:https://stackoverflow.com/questions/1284093/what-libraries-are-available-to-help-create-2d-java-games-for-phones