Menu

(Solved) : Creating Basic Pong Game Pygame Basic Pong Game Move Ball Back Forth Press Right Left Arro Q29964828 . . .

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

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

Please, make it as simple as possible.

Expert Answer


Answer to Creating Basic Pong Game Pygame Basic Pong Game Move Ball Back Forth Press Right Left Arro Q29964828 . . .

OR