wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes I want to focus on Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "I want to focus on " Watch "I want to focus on " New topic

I want to focus on

Alwell Mulsid

Joined: Sep 28, 2001
Posts: 1
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?
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
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
Tim Blommerde

Joined: Sep 24, 2001
Posts: 21
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,
Gerry Giese
Ranch Hand

Joined: Aug 02, 2001
Posts: 247
I found the following to be exceptional:
http://msia02.msi.se/~fmi/kurs/PhysicsSimulation/index.html - downloads on this page, online stuff is under 'Lectures'
The following either have promise or are not directly related to java but still useful for a game developer:

This is a topic I'm looking into myself. Anyone else have some good reference sites, tutorials, or game/code samples to share?

CJP (Certifiable Java Programmer), AMSE (Anti-Microsoft Software Engineer)
Author of Posts in the Saloon
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

Thanks for all the great links, Gerry!

Here are a few more... http://www.cs.pitt.edu/~alandale/dmjava/index.html - Dungeon Master Java http://www.javagaming.org/ - New, big discussion site!

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.
Gerry Giese
Ranch Hand

Joined: Aug 02, 2001
Posts: 247
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!
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121


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... )

Gerry Giese
Ranch Hand

Joined: Aug 02, 2001
Posts: 247
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!
jQuery in Action, 2nd edition
subject: I want to focus on
Similar Threads
focusing on an input element with jquery
Passed SCJP what next
JTable Cell Focus
get a jframe to "stay on top" in Applet
java command line