Relive the Retro Arcade Experience with Python
Step back in time to the golden age of arcade games with this minimalist version of Pong. Built using Python and the Pygame library, this game brings fast-paced action to your screen. Simple to play, tough to master—challenge your friends or take on the AI to see who rules the paddle!
- Single-Player Mode: Play against an AI opponent that automatically adjusts its paddle based on the ball's position.
- Two-Player Gameplay: Face off against a friend in local multiplayer mode.
- Smooth Motion: The ball and paddles move fluidly for a responsive experience.
- Dynamic Difficulty: The ball gets faster over time, ramping up the challenge.
- Score Tracking: On-screen scoreboard to track your progress.
-
Objective: Score points by getting the ball past your opponent's (or AI's) paddle.
-
Modes:
- Single-Player Mode: Play against the AI, which automatically moves the paddle.
- Two-Player Mode: Challenge a friend and take control of both paddles.
-
Controls:
- Player 1 (Left Paddle / AI Paddle in Single-Player):
- Move Up:
W
(Disabled in Single-Player Mode) - Move Down:
S
(Disabled in Single-Player Mode)
- Move Up:
- Player 2 (Right Paddle):
- Move Up:
↑
- Move Down:
↓
- Move Up:
- Player 1 (Left Paddle / AI Paddle in Single-Player):
-
The first player to reach 10 points wins!
-
Clone the Repository
git clone https://github.com/your-username/pong-game.git
2.Navigate to the main.py file to run the game
cd pong-game
python main.py