Applet Usage Instructions: RadialPong.class

by Andrzej Kapolka, ey6es@alumni.cse.ucsc.edu
(see my home page for more applets)


Disclaimer

I am providing this applet "as-is," without accepting any responsibility for the effects it may have on your computer, network, or livelihood. Because I am not a full time author of freeware Java applets, I cannot offer you any significant technical support. If you decide to use this applet in your web site, I would be pleased to be attributed, and to have my site linked to--but this is not at all necessary. Do not charge money for this applet, as it is intended to be freely distributed. Include this documentation--and, in particular, this disclaimer--in any distribution of this applet.

Introduction

RadialPong--my first applet--is a paddle game played on a circular track against a computer opponent. When the ball is hit by a paddle, it acquires that paddle's color. The object of the game is to knock the ball out of court when it is your color. Your score is shown in the upper left portion of the screen; the computer's score is in the upper right.

Click the mouse on the game window to release the ball. Move the mouse pointer around the window to change the position of your paddle.


Instructions

Place the class files contained in this package into your web space--that is, into a directory that is publicly accessible via the World Wide Web. Usually, it is easiest to place the class files into the same directory that contains the referring page. Place the included sound files (the files ending in .au) into this directory as well. In the HTML source file of the page in which you wish to place the applet instance, add the following lines of code:
<APPLET CODE="RadialPong.class" WIDTH={desired width} HEIGHT={desired height}>
</APPLET>
Replace {desired width} and {desired height} in the example with the width and height, in pixels, of the space that you would like the applet instance to occupy. Also, between the <APPLET> and </APPLET> tags, you may include any of the optional parameters described in the next section.

Parameters

playerColor A hexadecimal RGB color triplet specifying the player paddle's color.
compColor A hexadecimal RGB color triplet specifying the computer paddle's color.
bgColor A hexadecimal RGB color triplet specifying the background color.

Example



For this example, I used the following HTML snippet:
<APPLET CODE="RadialPong.class" WIDTH=256 HEIGHT=256>
<PARAM NAME="playerColor" VALUE="#00FFFF">
<PARAM NAME="compColor" VALUE="#FFFFFF">
<PARAM NAME="bgColor" VALUE="#000000">
</APPLET>

copyright © 1999-2000, andrzej kapolka