Step 8: Paddle and Ball Collision 2

Goal:


Now that our ball bounces away from the paddle, we want to update our score and have the game display it.

Steps:

  1. From Variables, place a set block and set it to Points.
  2. From Math, attach a +(plus) block to the end of the set Points block.
  3. From Variables, place get Points and place in the left side of the +(plus) block.
  4. From Math, place a 0(zero) block in the right side of the +(plus) block and set it to 1.
  5. From Score, place a set Score.Text block.
  6. From Variables, attach a get Points block to then end of the set Score.Text block.

Code: