11.02.99
15.07.97
If you want to use the applet on a commercial web site, you
can obtain a commercial license via http://www.shareit.com/programs/104077.htm.
Alternatively, you can go to http://www.shareit.com
and enter the program number there: 104077 or simply 'BBApplet'.
If you would like to buy the source code of BBApplet, you can
do the this online as well at
http://www.shareit.com/programs/103164.htm.
Alternatively, you can go to http://www.shareit.com
and enter the program number there: 103164. This includes the
license to use the applet commercially.
Download BBApplet.zip
It contains:
|
- | the Java class files |
|
- | the bitmap of the ball |
|
- | the bitmaps of the basket (for left and right side) |
|
- | the bitmap of the speaker |
|
- | the documentation |
|
- | here you can play |
|
- | the background bitmap for Test.html |
|
- | the sound of the bouncing ball |
|
- | the sound of the ball touching the basket |
|
- | the sound, when the ball hits |
...
<APPLET code=BBApplet.class width=500 height=400> <PARAM name="background" value="255 255 255"> <PARAM name="standardtext" value="Game mode"> <PARAM name="hittext" value="Yes!"> <PARAM name="cheattext" value="Uhhh, you cheated"> <PARAM name="atempttext" value="Hit(s) Shot(s)"> <PARAM name="loadtext" value="Wait, loading images..."> <PARAM name="mode" value="1"> <PARAM name=backimage value="background.gif"> Your browser don't support Java, so see this screenshot at least: <P> <IMG SRC="screenshot.gif" HEIGHT=467 WIDTH=408> </APPLET> ...You can adjust the appearance of the applet with a lot of parameters. Here is a table with all possible parameters:
parameter | value | default
(if you don't provide that parameter) |
---|---|---|
background | the background color as:
<red> <green> <blue> |
255 255 255 |
backimage | URL of the GIF or JPEG file, which
will be shown in the background (Attention, can slow down the applet significantly) |
none |
sound | on - each bounce of the ball is
accompanied by a sound off - no sound |
off |
hitmode | 0 - demo mode
1 - game mode 2 - link mode 3 - two player mode |
0,
2, if the "link" parameter is provided |
link | URL with the location, where the
browser will switch to, when you hit in link mode. |
no default |
standardtext | the text which will normaly be displayed | "" |
hittext | the text which will be displayed when
your shot hit |
"Click ball to go on!" |
cheattext | the text which will be displayed when
you tried to cheat |
"You cheated, try again!" |
atempttext | the words that indicate your shots and
your hits (separated by a blank) in game mode <hits> <shots> |
"Hits Shots" |
loadtext | the text that will be displayed when the
applet is waiting for th images to be loaded |
"Loading Images" |
Additionally you can customize the applet by providing new images for the ball, the basket, etc. and new sounds.