Don's Dugout: Ingredients

Most of the visual items in the game have been prepared in advance and get cut out of the graphical data file dugout.gif, but not the sky and the ground. Both of them are made out of fractals, generated by a standard 2D midpoint interpolation/displacement algorithm. Doing this in Java takes time, but it only needs to be done once, right before the game starts.

Three audio files,, and, contain the sparse but suitable sound effects.

Then there is of course the class file, dugout.class.

The source code can be found here.