Break Away

A webpage version of the classic 'Breakout' game in which a play tries to bounce a ball off his/her 'paddle' and eliminate layers of bricks. This version allows you to place an image in the background that is revealed as the bricks are knocked away.

BreakAway1.tar

<param name=COPYRIGHT value="BreakAway applet, Copyright 1999, Eric Harshbarger">
  • SPEED: This is the number of milliseconds between ball movements.

  • BALL.COUNT: This is the number of balls a player gets during the game.

  • PADDLE.WIDTH: This is the pixel width of the players 'paddle' used to bounce the ball back up.

  • SOUND.BRICK: A sound file that is played when the ball destroys a brick.

  • SOUND.MISS: A sound file that is played when the ball is missed by the player.

  • SOUND.WALL: A sound file that is played when the ball bounces off a side wall.

  • SOUND.WIN: A sound file that is played when all of the bricks are destroyed.

  • BRICK.WIDTH: This is the pixel width of the bricks to be destroyed. The number of bricks in a rows is determined by this formula:
    (APPLET.WIDTH - 10) / BRICK.WIDTH
    since the game walls (borders) are automatically 5 pixels each (total 10).

  • BRICK.HEIGHT: This is the height of the bricks.

  • TOP.ROW.START: This is the pixel position of the top of the first row of bricks (as calculated from the top edge of the applet's area).

  • ROW.COLORS: This parameter indicates not only the number of rows of bricks, but also the color of each row. The value of the parameter is a pipe (|) delimited sequence of RGB triplets.