The project below is a starter for the classic game of Pong: a rectangular Paddle sprite and a round Ball sprite have been created for you, each with empty hat blocks (when green flag clicked, and for the paddle when up arrow/down arrow key pressed) waiting for your code.
Write the paddle code first: the up and down arrow keys should move it up and down near the right edge of the stage without letting it wander off the edges. Then write the ball code: when the green flag is clicked it should start in the middle pointing in a random direction, keep moving, bounce off the stage edges (there's a built-in if on edge, bounce block), and bounce off the paddle — its new direction is the negative of the direction it hit at. For extra credit, add scoring or a second paddle.
Your work autosaves (and you can use the Save button); earlier versions are available from the Revisions dropdown.