Question: Creating a basic pong game with pygame: This basic pong game will only move a ball back and forth when you press the right and

Creating a basic pong game with pygame: This basic pong game will only move a ball back and forth when you press the right and left arrow keys. Once the ball touches the rectangles, it turns them purple.

Optional: Make at least three modifications to the code. Some ideas are below: You can modify the code to allow the ball to move up and down. Add another key stroke to do something (turn the ball a different color, or change direction). Key codes are here: https://www.pygame.org/docs/ref/key.html (Links to an external site.)Links to an external site. Change the ball's color. Change the color of the rectangles. Add your name to the screen. Move the rectangles. Anything you can imagine!

Please, make it as simple as possible.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!