Breakout+Ball+Code

The ball code has 2 blocks.

Starts the ball off in a random direction and then checks to see if it has hit the paddle or a brick. If the ball hits the paddle it's sent back in the opposite direction. If the ball hits a brick then 20 is added to the score and it's sent back in the opposite direction.
 * Code Block 1**

Moves the ball. It checks to see if it's hit the side, and it it has it bounces it back. It also checks to see if it's hit the DeathZone. If it hits the death zone the ball is placed back in the middle of the screen and flashes 5 times. A message "Death" is broadcast which will lose a life.
 * Code Block 2**


 * Ball Code Block 1**


 * Ball Code Block 2**