This seems like an obvious question, and I apologize if it’s common knowledge here. But what is the best 2D sprite implementation available, and where can I find it?
Thanks,
Greg
This seems like an obvious question, and I apologize if it’s common knowledge here. But what is the best 2D sprite implementation available, and where can I find it?
Thanks,
Greg
Depends what you mean by sprite implementation. In Java 2D, most folk end up with just blitting images to the screen. If thats what you want to do I’ll shamelessly plug my own tutorial:
http://www.javagamesfactory.com - Look for the SpaceInvaders 101 tutorial.
If you’re staing in the Java2D world and want a simple wrapper of images with a bit of clever stuff you should check out GAGE: http://java.dnsalias.com
If you want to jump straight over into OpenGL you could do much worse than checking out SPGL http://sourceforge.net/projects/spgl which sits on top of the OpenGL binding LWJGL (http://www.lwjgl.org)
Finally if you’d like a simple wrapper that will abstract away which rendering layer you’re using (Java 2D or OpenGL) you could consider Java 2D Abstraction (J2DA) at http://j2da.sf.net
Hope this helps,
Kev
PS. If you just starting out its probably for the best if you just write a simple wrapper yourself before you get dependant on someone elses library.