The ball will move around the stage, and we will control the paddle with the left and right keys.

  • From , drag in Set x Speed and Set y Speed.
  • Assign the commands to ball. Change the values to 2.
  • Drag in Left Key and Right Key events.
  • Assign the commands inside the events to paddle.

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)