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

笑着哭i 提交于 2019-12-21 02:37:19

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!