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, dugout0.au, dugout1.au and dugout2.au, contain the sparse but suitable sound effects.

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

The source code dugout.java can be found here.