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?
I didn't use it myself, but heard some good reference on here.
And here is even a list of libraries, you might need.
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.
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.