I decided that I would write a racing game in java. I was partly inspired
by screenshots for hover (which
I have not played as I do not have a good enough PC -and the link to it now seems to have died).
After I had started coding I also saw a scalectrix game which gave me a good idea of how the tracks should work.
Thanks to Duncan,
Ian and Matt for helping "play-test" the game, and giving me feedback.
Thanks again to Duncan for the
tracks he created (monaco, track-of-doom and others).
Dunk has also written a track editor, which beats hand coding track files.
I have released the game under the GPL licence. This means that the game is free software, the source code must be made available to anyone who wants it. The source may be modified, but the modified source must remain under the licence, this is known as copyleft. See the Free Software Foundation for more details about what you can and cannot do with the source code.
So here I present to you my racing game. It does not really have a name. The graphics are deliberately simple, I made my self not work on them so that the game would run quickly and so I could concentrate on more important things, such as the:
The game was mainly written in the space of about 3 weeks, so the code is a bit messy.
It is written in java and runs on Windows (tested under NT), Linux (tested under Mandrake), MacOS (tested under 9.04) and Epoc (tested on a netBook). It should run on most computers that have java 1.1. Anyway you can get java from Sun (for windows, linux, solaris) or from Apple (for macintosh).
Anyway, so in the racing game you control a tiny vehicle, it is represented on screen by a little rectangle. To move it around you use the cursor (arrow) keys. That's about it really. The rest should be fairly obvious.
The application version of the game must be downloaded onto your computer, it won't work in a browser window. The application version allows you to play against other people, over a network.
To use the application version, run the game. You'll be presented with a dialog (sorry, but it's easier that way). You have four buttons:
If you choose join you don't need to know anything else, as soon as everyone else has joined the game will start.
If however you choose to host a game you will be given another dialog (whoohoo!).
This one allows you to choose how many people will be in the game (including you)
and which track to race on first. Hit "Ok" once you decided everything.
If you only chose 1 player, you will go straight into the game, with only you racing.
Boring, but good for practice. Otherwise you will be give yet another dialog, with a
button that says "stop waiting". This button does not have to be pressed. If you do press
it, the game will start with the players who have already joined. If you do not press the button
then the game will wait until all players have joined.
Once the game starts you will initially not be able to move, until the lights (red, yellow then green circles) have disappeared.
The games host will have two buttons to the right of the racing area, one is reset, one is next. Reset restarts the race with everyone at the starting line again. Next does the same, but also puts everyone onto the "next" track.