A classic Tetris game built using Python and Pygame, featuring sound effects, levels, scoring, animations, and a start screen. The game increases difficulty as the player progresses through levels.
-
Classic Tetris gameplay
-
7 different Tetromino shapes
-
Level-based speed increase
-
Line clear animations with particle effects
-
Sound effects for:
- Game start
- Line clear
- Game over
-
Start screen with background image
-
Restart and exit options after game over
- Python 3
- Pygame library
Tetris/
│
├── tetris.py # Main game file
├── background.jpg # Start screen background
├── clear_lines.wav # Sound for clearing lines
├── game over.wav # Game over sound
├── Starting.wav # Game start sound
├── README.md # Project documentation
Make sure you have Python and Pygame installed.
pip install pygame- Clone or download the repository
- Make sure all sound and image files are in the same directory
- Run the game using:
python tetris.py| Key | Action |
|---|---|
| ⬅️ Left Arrow | Move block left |
| ➡️ Right Arrow | Move block right |
| ⬇️ Down Arrow | Move block down faster |
| ␣ Space Bar | Rotate block |
| Enter | Restart game (after Game Over) |
| Space | Exit game (after Game Over) |
- +10 points for each cleared line
- Level increases automatically as score increases
- Higher levels increase falling speed
- Grid-based board system
- Random Tetromino generation
- Collision detection and boundary checks
- Line-clearing mechanism
- Particle effects on line clear
- Game Over detection when blocks reach the top
- Start screen with START button
- Gameplay screen with score and level display
- Game Over screen with final score and replay option