Welcome to the Python Tetris Game! This is a classic Tetris game implemented in Python using the Pygame library, with several custom modifications and enhancements.
- Color Scheme: The game features a unique color scheme using shades of black, grey, and red.
- Row Counting: The game displays the number of rows cleared by the player.
- Score Adjustment: The score no longer increases by simply pressing the down button to speed up the block's descent.
- Custom Sounds: The game uses custom sound files for rotation and row clearing actions.
- Continuous Movement: The blocks can move continuously when the left, right, or down keys are held down.
- Python 3.x
- Pygame library
-
Clone the repository:
git clone https://github.com/Nebulaleaf/pygame_tetris.git cd python-tetris-game
-
Install Pygame:
pip install pygame
To run the game, simply execute the main.py
file:
```bash
python main.py
```
- Use the left and right arrow keys to move the blocks.
- Use the down arrow key to speed up the block's descent.
- Use the up arrow key to rotate the blocks.
- Press the escape key to exit the game.
This Tetris game was originally created based on a tutorial by the YouTube creator @programmingwithnick.
Tutorial here: Link
However, several modifications and enhancements have been made:
- The color scheme was changed to shades of black, grey, and red.
- Row counting was implemented to display the number of rows cleared.
- The scoring system was adjusted to prevent score increases by merely pressing the down button.
- Custom sound files were used for various game actions.
This project is licensed under the MIT License. See the LICENSE file for details.
- A big thank you to @programmingwithnick for the original tutorial and inspiration.