beltoforion.de
 Contact |  CSS |  XHTML

A simple tennis game


This is a Java version of the a classical pong like tennis game. There is nothing special about it. It can be either used as a demo with two computer controlled players or against one of two computer opponents.

Download and Useage


java plugin is missing

Download icon  Download jar file
Download icon  Download source code (requires Netbeans)

In order to use the applet add the following lines to your html code:

<object classid="java:tennis.class"
        type="application/x-java-applet" 
        width="620" 
        height="480">
  <param name="archive" value="JTennis.jar"/>
  <param name="code" value="tennis.class"/>
  <param name="codebase" value="."/>
  <param name="sleep" value="25"/>
  <param name="padcontroll_left" value="computer1"/>
  <param name="padcontroll_right" value="human"/>
</object>
  

The following table lists the applet parameters and their meaning.

Parameter Meaning
sleep time to wait after each frame (in milli seconds)
padcontroll_left Defines who controls the left pad, must be either one of computer1, computer2 or human.
padcontroll_right Defines who controls the left pad, must be either one of computer1, computer2 or human.