Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What libraries are available to help create 2D Java games for phones?

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

like image 973
Robin Rodricks Avatar asked Jan 23 '23 07:01

Robin Rodricks


2 Answers

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.

like image 140
Josef Pfleger Avatar answered Feb 03 '23 08:02

Josef Pfleger


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

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

like image 23
Trimack Avatar answered Feb 03 '23 08:02

Trimack