PLANNING 2: Now plan what will happen whenever the ball hits something.

In our example game, there were different outcomes depending on if the ball hit a brick or the paddle.

You can go further! If you have special bricks, what will happen if the ball hits them?

  • Decide what will happen for every type of object the ball can hit.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)