Bricks
The aim of this game is to direct the ball at the brick wall to break away the bricks and demolish the wall.
- Once all the bricks are broken the game is over.
- If a ball goes past the paddle, you will lose the ball and a new one is served back at you.
- You have 5 balls, when they are all gone the game is over.
- The score is 80% for the number of bricks broken as a ratio to the number of bricks in the wall.
- And 20% for the number of balls left when the game is over.
Mouse And Keyboard Interaction:
- Using the key p or pressing on Pause (p) will pause the game. Using the key p again or pressing on Unpause (p) will resume the game.
- Also clicking the mouse while moving the paddle will pause the game. To resume do the action above.
- You can move the paddle by moving the mouse within the game area (above the paddle).
- When the mouse is within the game the pointer is invisible to avoid its distractive effect. Click the mouse to pause the game and make the mouse pointer visible again or move the mouse outside the game area.
- If the mouse is outside the game area, you can still move the paddle using the keys ← →.
Paddle Interaction:
- The paddle can be moved using the mouse if it is inside the game area, or by using the keys ← →.
-
The paddle has a center section and two edge sections.
- If the ball hits the center section it will be deflected back in the vertical direction but its speed in the horizontal direction will remain the same.
- If it hits the right section while moving right its horizontal speed will be increased by 1%.
- If it hits the right section while moving left its horizontal speed will be decreased by 1%.
- If it hits the left section while moving right its horizontal speed will be decreased by 1%.
- If it hits the left section while moving left its horizontal speed will be increased by 1%.
- The above helps make the ball eventually reach all the bricks.
The vertical and horizontal speeds of the ball will be increaded every time a new ball is served depending on the amount of bricks already broken. This will make the game harder as your score gets higher
___