20050116

breakout applet installation
















Be sure to keep your mouse within the play-area.

20050115

the files you'll need to get

There are three.class files needed to make the Breakout applet.

The file is FREEWARE.   Download "BreakAway1.zip" from:
http://www.dustyinfo.com/goo/BreakAway1.zip   [ 13 kb download ]
I'm going to assume you know how to download and unzip zip files.
All four unzipped files need to be kept in the same directory (folder).

20050113

you will need an HTML page

Copy the following code with Notepad, insert codebase data, then save with a name of your choice, but with an extension of .html [not .txt].

<html>
<head>
<title>Breakout HTML example using codebase</title>
</head>
<body>
<center>
<table border=0 width=400 height=300 cellpadding=0 cellspacing=0>
    <tr>
       <td>
            <applet code=BreakAway1ech.class width=340 height=225 codebase=http://www.where-files-are.com/ ARCHIVE=BreakAway1.jar>
<!-- REMOVE CODEBASE IF YOU WANT TO USE APPLET OFF-LINE -->
<!-- USE CARE TO RETAIN ">" AT END OF CODEBASE LINE -->
            <param name=COPYRIGHT value="BreakAway applet, Copyright 1999, Eric Harshbarger">
            <param name=AUTHOR value="Eric Harshbarger, http://www.ericharshbarger.org">
            <param name=BGCOLOR value="116,173,112">
            <param name=FGCOLOR value="255,255,255">
            <param name=SPEED value="20">
            <param name=BALL.COUNT value="10">
            <param name=PADDLE.WIDTH value="40">
            <param name=BRICK.WIDTH value="30">
            <param name=BRICK.HEIGHT value="10">
            <param name=TOP.ROW.START value="20">
            <param name=ROW.COLORS value="255,102,0 | 255,0,204 | 0,102,255 | 204,0,255 | 255,0,255 | 0,255,255">
            </applet>
       </td>
    </tr>
</table>
</center>
</body>
</html>

What can be modified?
Changing width and height only changes background, and does not effect size of playfield.
"Params" control variables which you may change, but you must not alter COPYRIGHT or AUTHOR params, or the applet will not work.
BGCOLOR is background color [a green color expressed in RGB].
FGCOLOR is foreground color [gray, hidden under playfield]
SPEED - a lower number is a faster and more difficult ball.
BALL.COUNT is number of balls before game ends.
PADDLE.WIDTH is self-explanatory, but a wider paddle is easier.
BRICK.WIDTH is self-explanatory.
BRICK.HEIGHT is self-explanatory.
TOP.ROW.START is distance from top to first row.
ROW.COLORS is color of rows expressed in RGB values.

What is codebase?
Codebase tells the browser where the applet files are located, but if all files (including the HTML file, .class files, and images) are all together in one folder on your own server or local system, you should not specify CODEBASE.   Likewise, if you are going to use the applet off-line, do not use a CODEBASE.

If you are using something like BLOGGER, then yes, you will definitely need to use a codebase address (since applets and images can't be directly stored on the .blogspot server).
Replace ...where-files-are.com/ with address of where files are stored.

20050112

embed code in BLOGGER

As you probably know, images and applet files cannot be uploaded and stored directly on the .blogspot server, so you need to store these files with your web hosting service.

Of course, your BLOGGER webpage needs to know where to dial-up the various files which make up an applet, so that is why that address in CODEBASE needs to be used.

The following is the HTML code you would use to embed the applet into BLOGGER. Basically, this snippet is the same as the preceeding full-length HTML code example, but this snippet has an "A HREF=" anchor-tag which dials-up the applet.   Reminder;  be sure to change the CODEBASE url to match where the .class files, etc., are stored [not your .blogspot URL].

<a href="http://www.where-files-are.com/">
<applet code=BreakAway1ech.class width=340 height=225 codebase=http://www.where-files-are.com/ ARCHIVE=BreakAway1.jar>
<!-- REMOVE CODEBASE IF YOU WANT TO USE APPLET OFF-LINE -->
<!-- USE CARE TO RETAIN ">" AT END OF CODEBASE LINE -->
      <param name=COPYRIGHT value="BreakAway applet, Copyright 1999, Eric Harshbarger">
      <param name=AUTHOR value="Eric Harshbarger, http://www.ericharshbarger.org">
      <param name=BGCOLOR value="116,173,112">
      <param name=FGCOLOR value="255,255,255">
      <param name=SPEED value="20">
      <param name=BALL.COUNT value="10">
      <param name=PADDLE.WIDTH value="40">
      <param name=BRICK.WIDTH value="30">
      <param name=BRICK.HEIGHT value="10">
      <param name=TOP.ROW.START value="20">
      <param name=ROW.COLORS value="255,102,0 | 255,0,204 | 0,102,255 | 204,0,255 | 255,0,255 | 0,255,255">
</applet>
</a>

20050110

did your installation work?

Did you get it working?
I've only given you the bare-bones here,
so if you need help, post a comment and I'll try to help you out.
You need not sign-up with Blogger if you sign in as anonymous.
There is no spam, ad-ware, or pop-ups on this site.

20050101

MORE FUN WEBSITES

http://www.gooapplet.blogspot.com
http://www.rubikscubeapplet.blogspot.com
http://www.slide15applet.blogspot.com
http://www.soundeffects.blogspot.com
http://www.soundeffects2.blogspot.com
http://www.soundeffects3.blogspot.com
http://www.soundeffects4.blogspot.com