This is a simple Pong game built using Pygame, featuring a collision detection system and sound effects. The game tracks player scores and will be expanded with new features in the near future.
- Player Score Display: There is a horizontal rule (HR) above the game screen displaying the scores of Player 1 and Player 2.
- Ball Collision: The ball changes direction when it touches the HR or the paddles.
- Sound Effects: A collision sound is played each time the ball hits the paddles, the HR, or the edges of the screen.
- AI Opponent: Implement an AI opponent that can play against the user.
- Player 1 (Left Paddle): Use the
WandSkeys to move the paddle up and down. - Player 2 (Right Paddle): Use the
UPandDOWNarrow keys to control the right paddle. - The game continues as the ball bounces between the two paddles and the screen edges.
- A player scores a point when the opposing player fails to hit the ball.
- The scores are updated and displayed above the play area.
- Python 3.x
- Pygame
You can install Pygame using the following command:
pip install pygame