Setup
VINT Hub
![](/education/wp-content/uploads/2022/12/HUB0000_square.jpg)
Code
![](https://www.phidgets.com/education/wp-content/uploads/2021/12/scratch_pong_blocks.png)
Practice
- Try adding a new ball sprite to your project. Use the code below to make your ball move.
- Modify your code so the paddle interacts with the ball. Use the code below as a starting point.
- Try keeping score using a variable. When the ball contacts the paddle, add one point. If the ball contacts the floor, the game is over. Hint: add the Line sprite to the floor so you can sense when the ball interacts with it.
![](/education/wp-content/uploads/2022/01/scratch_pong_ball.png)
![](/education/wp-content/uploads/2022/01/scratch_pong_collision.png)
![](/education/wp-content/uploads/2022/01/scrath_pong_linesprite.png)