3

I am trying to just experiment with Java, and I was wondering what the most simple API for Java would be to make a 2D building game (i.e. placing blocks, moving around, etc) for a beginner who only knows Java and not many other dependencies.

Anonymous
  • 553
  • 5
  • 17
  • 41
  • 1
    Take a look at the [Graphics2D](http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html) as a starting point. – Perception Apr 27 '12 at 03:55

1 Answers1

3

http://lwjgl.org/ This is an easy java api to use:)

hawkfalcon
  • 652
  • 1
  • 12
  • 24
  • probably because lwjgl is meant for 3d games (just guessing) – Hawken Apr 27 '12 at 03:58
  • :/ Yes but it works for 2D as well. – hawkfalcon Apr 27 '12 at 04:00
  • 2
    iHawk, *why* is this an easy, or the best, Jave API to use for simple 2D games? – Michael Petrotta Apr 27 '12 at 04:01
  • It is relatively lightweight compared to other api's, but is still very powerful. I personally have not used it to make 2d games though, I just thought it would be a good place for him to start! – hawkfalcon Apr 27 '12 at 04:15
  • Note this from the website: "LWJGL is not meant to make writing games particularly easy; it is primarily an enabling technology which allows developers to get at resources that are simply otherwise unavailable or poorly implemented on the existing Java platform." – Greg Kopff Apr 27 '12 at 04:19