A fun and interactive Pinball game built with Python, Turtle, and Pygame. Bounce the ball off the paddle to destroy bricks, collect power-ups, and advance through increasingly challenging levels.
- Multiple levels with randomly generated brick layouts.
- Bricks with different HP: normal (1 hit) and strong (2 hits).
- Power-ups: paddle enlargement, extra life, slow ball, extra ball.
- Lives, score, level tracking, and high score saved locally.
- Smooth paddle movement using keyboard input.
- Real-time collision detection with bricks, walls, and paddle.
- Sound effects for bouncing, brick breaking, power-ups, level up, and game over.
- Clone the repository:
git clone https://github.com/pathipat11/Python-Pinball-Game.git- Navigate to the project directory:
cd Python-Pinball-Game- Install required packages:
pip install pygame- Place the
assetsfolder (sounds, images if any) in the project folder. - Run the game:
python main.py-
Controls:
- Arrow Left / Right: Move paddle
- Space: Launch ball / Start level
- P: Pause / Resume
- R: Restart game
-
Try to destroy all bricks while keeping your balls alive.
Contributions are welcome! Feel free to submit a pull request or open an issue.
Pathipat Mattra
- 🌐 Facebook: Pathipat Mattra
- 💻 GitHub: pathipat11
- 💼 LinkedIn: Pathipat Mattra
