# pong quiz create the game Pong. ## Name ## Directions Use this activity document to guide your work in the [pong tutorial](/lessons/pong/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! ## 1. Create two variables that will keep track of the x-position and y-position of the ball, and assign the variables to their initial values.
## 2. Create two variables that keeps track of the velocity (or the speed and direction) of the ball, and assign the variables to their initial values.
## 3. Write the code that plots the initial position of the paddle and the ball.
## 4. Write the code that moves the paddle up when Button A is pressed. (Don't worry about setting 'game running' to true.)
## 5. Write the code that moves the paddle up when Button B is pressed. (Don't worry about setting 'game running' to true.)
## 6. Write the code to update the y-velocity. (Hint: look at the function "update y velocity".)
## 7. Write the code to move the ball. (Hint: look at the function "move ball".)