Skip to content

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.

Notifications You must be signed in to change notification settings

pathipat11/Python-Pinball-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python-Pinball-Game

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.

Features

  • 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.

Installation

  1. Clone the repository:
git clone https://github.com/pathipat11/Python-Pinball-Game.git
  1. Navigate to the project directory:
cd Python-Pinball-Game
  1. Install required packages:
pip install pygame

Usage

  1. Place the assets folder (sounds, images if any) in the project folder.
  2. Run the game:
python main.py
  1. Controls:

    • Arrow Left / Right: Move paddle
    • Space: Launch ball / Start level
    • P: Pause / Resume
    • R: Restart game
  2. Try to destroy all bricks while keeping your balls alive.

🎬 Demo Video

Pinball Game Demo

Contributing

Contributions are welcome! Feel free to submit a pull request or open an issue.

Author

Pathipat Mattra

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages