I'm very very new on Java and of course I consider myself as a newbie. I really want to focus on Java game development. Any suggestions where to concentrate on java topics?
Joined: Sep 29, 2000
Most games are heavy into GUIs so knowing the AWT and SWING very well would be to your advantage.
"JavaRanch, where the deer and the Certified play" - David O'Meara
Joined: Sep 24, 2001
Of course getting yourself familiar with the Java language is the first thing you should do. After that you might look into the java.awt.image.renderable package and the java.io package. Of course it all depends on what kind of game you want to create. A slightly outdated site called 'The Java Game Programming Tutorial' might set you on the right track. Another tutorial, found at the Sun site, learns you how to create a Bingo game. I know it does not sound spectacular, but you said you're rather new to Java, so you have to start at the bottem. Good luck, Tim
I, too, am interested in Java game programming... I've programmed the obligitory Tetris game , and it's on my website... I've worked on a few other games, but haven't had the time to finish them due to time spent doing actual work...
As far as what you should look into... learn basic Java pretty well first... then it depends on what you're going to do with your game... some basic GUI will be needed, AWT for applets, Swing for applications. Maybe some IO if you're going to be doing file access... Image processing and threads are always important to know... there are a few books out there on Java game programming, but almost all of them are quite a bit out of date, and most aren't that good...
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Joined: Aug 02, 2001
Nathan - good info! I think there are lots of people with real lives who secretly want to be 'Game Developers'. Any chance we could add a 'Fun and Games' forum to the Saloon? Can't hurt to ask... The javagaming.org link was *supposed* to be in that blank line in the latter part of my first message - don't know why it didn't make it. There are three books coming out this month and early next of note to aspiring Java Game Developers: The Tao of Java 2 Game Programming, Java Graphics Programming Library (Advances in Computer Graphics and Game Development), and AI Game Programming Wisdom. The last one is not Java-specific, and is like a 'Game Programming Gems' just for AI. That one and the middle one won't be out until March/April respectively, but the first one is due out any day now and looks to be a must-buy. I'm really going to tear into that one when it arrives! One of the hardest things to research so far has been good examples of sprites and double-buffering in a game-related context - ie, how to do basic animation. I've cobbled together someting that works, but I know that it's not ideal. FYI, I'm just goofing with trying to make a nethack clone. It's barely started, and I'm embarassed to even look at it myself, but you gotta start somewhere! Thanks again!
New forums are created on JavaRanch if someone can display a large amount of postings on a certain topic, and bring up the idea in the JavaRanch forum ( the one where postings about this site go... ) I'd really enjoy one focused on games, too... though most of the questions on games could probably be handled in the Swing/AWT/JFC , IO, or the Java In General forums depending on what the questions were about...
Thanks for the links to the books... now I have more things to put on my Christmas list...
Nethack has been one of my all time favourite games... and I think it's about time for a Java clone of it!
For a short post describing double-buffering on here look at this... there's more to it though, if you want to make animations, you have to have threads and more stuff...
Here's some code I had laying around that has all the parts you'll need to do animation... Since this is just some code I've thrown together over a few minutes a few weeks ago, the standard disclaimers apply... ( Though I did check to make sure it ran in appletviewer before I posted it... )
Since it's an applet, here's the HTML I have to launch it... ( with spaces inserted, so it won't execute in the browser... )
Joined: Aug 02, 2001
Nathan, Thanks for the applet! Looks pretty good. I was surprised to see it recognized the transparency in a .GIF! Hopefully I can dissect it and figure it all out pretty soon. The closer it gets to the holidays the less time I seem to have fun stuff like this. :-( Thanks again, and let us know if you find anything new/interesting on the game programming front! Gerry