A Tetris clone in Python using the Pygame library. This game features:
- Classic pivot-based rotation for each shape
- 3D / beveled block rendering for a retro look
- Soft drop (press Down) with auto-repeat for Left/Right keys
- Line flash before clearing lines
- Simple sine-wave beep sounds for locking pieces and clearing lines
- Leveling up: every 10 lines cleared increases the level and speeds up gameplay
-
Pivot-based Rotation
Each shape has a designated pivot cell, similar to older Tetris versions, ensuring minimal “jumping” when rotating. -
3D Block Rendering
Blocks have highlight and shadow edges, giving a 3D or “beveled” look. -
Soft Drop
Holding the Down arrow accelerates the falling speed. Releasing it restores normal speed. -
Line Flash & Clear
Completed lines briefly flash white, then get removed. -
Leveling System
Every 10 lines raised increases the level, which speeds up falling pieces. -
Retro Beeps
- Lock beep when a piece lands
- Line-clear beep when lines are removed
-
Clone or Download this repository:
git clone https://github.com/YourUsername/RetroTetris.git cd RetroTetris
-
Install Dependencies:
pip install -r requirements.txt
-
Run the Game:
python tetris.py
The exact packages and versions are listed in requirements.txt.
- Left/Right Arrow: Move the falling piece horizontally (auto-repeat if held)
- Up Arrow: Rotate the piece 90° clockwise around its pivot
- Down Arrow: Soft drop (accelerate falling)
- Close the window: Ends the game
Distributed under the MIT License (or whichever license you choose). Feel free to modify as you wish.
- Fork or clone this repository
- Create a new branch for your feature or bug fix
- Submit a pull request with a clear explanation of changes
Enjoy this retro Tetris clone! If you encounter any issues, please open a GitHub issue or submit a pull request.