Current area: HOME -> Java Games tutorial #4
|
Java Games tutorial #4
Last time, we promised that we'd write the "Game Setup"
state in tutorial #4. We had no idea what we were getting
into! We've managed to cram it all in here, but it's a pretty tall
order. In the course of this tutorial, your going to learn several
new things:
-
How
to "nest" loops
-
How
to use a new kind of loop
-
How
to use random numbers
-
How
to use 2 dimensional arrays
You'll
also get your fill of drawing lines on the screen, printing out
instructions, and generally creating a simple GUI (graphical user
interface).
If
you like, you can download this tutorial in stand-alone format here.
Otherwise, let's get
right into it.
|