![]() |
|
Java Game Programming |
Travon Santerre
Member #3,142
January 2003
![]() |
Does anyone know where I can get something similar to allegro except for Java? I'm doing a project for a software engineering course but the prof is requiring it be done in java. --------------------------------------------------------------------- |
Kanzure
Member #3,669
July 2003
![]() |
Good luck. The only places you would find this stuff is in a book. I've heard games in Java are very hard, unless you know your "stuff"... |
kazzmir
Member #1,786
December 2001
![]() |
Allegro is a low-level graphics API. There is no such thing in java( as far as i know ). You are going to have to use either the AWT graphics stuff, or opengl which should be faster than AWT and swing. |
23yrold3yrold
Member #1,134
March 2001
![]() |
Yup, I think OpenGL and Java work together. Best bet IMHO (especially if you already know OpenGL -- |
nonnus29
Member #2,606
August 2002
![]() |
Java's AWT has all of the basic functionality of allegro except its non-accelerated (you can load and draw gifs and jpegs, you can draw primitives, you've got a gui, you can load and play sound clips, you can read the keyboard and mouse). Don't ask me how to load an Image in a non-Applet component though. |
Billybob
Member #3,136
January 2003
|
It is possible, pending you want to ignore crossplatform compatibility. Java has the ability to use windows DLLs, so it can use an Allegro DLL just fine
|
spellcaster
Member #1,493
September 2001
![]() |
You don't need something like allegro, since you can do all in plain vanilla java. Even in java 1.1 Allegro has 3 big areas image loading / blitting All these features are there even in java 1.1 If you use jdk1.4 or higher, you have even more options, like using antialiasing, smooth rotations, etc. But for small and simple games, stick with jdk 1.1. Much simpler. Esp. if you're new to Java. What do you want to code? Maybe I can help? -- |
Travon Santerre
Member #3,142
January 2003
![]() |
Thanks for the help everyone, I've used allegro with c++ but never done any GAME programming in Java. Anyways the project my group is working on is pretty cool so far. The other members of my group are going to use a GPS satelite receiver to transmit their location via bluetooth, and send me variables that describe their relative position, velocity, altitude, and acceleration. All I have to do is display those variables visually, (map their changing position), which isn't hard once I get the tools for java, I've found some good leads from all of your comments but anyone with advice feel free to give. --------------------------------------------------------------------- |
Mark Robson
Member #2,150
April 2002
|
It is totally technically feasible (if a little long-winded) to call Allegro directly from Java using JNI. I made a library a while ago to implement a small subset of Allegro's functionality that does just that. Info can be found here. http://homepage.ntlworld.com/slarty2/allegroj/ Don't email me on slarty@submail.net that doesn't work. Instead PM me on here. Mark |
thedrakeman
Member #3,027
December 2002
![]() |
4 words... "Java API", (btw it is 4 words if you split up the acronym API).
Also, if there is something that is pretty much what you want but not quite, then subclass it and change it to whatever you need. |
axilmar
Member #1,204
April 2001
|
GL4Java is quite a good Java library for 3d graphics. |
dudaskank
Member #561
July 2000
![]() |
Some e-books here: [url http://webmail.dpi.ufv.br/downloads/livros_tutoriais/Game%20programming/] Including the "Black Art of Java Game Programming" ^__^ Toque a balada do amor inabalável, eterna love song de nós dois |
spellcaster
Member #1,493
September 2001
![]() |
Quote: Including the "Black Art of Java Game Programming" Which must be the worst book ever. -- |
X-G
Member #856
December 2000
![]() |
Any plans to translate your book to English yet, Lenny? -- |
|