This project is a modern version of the classic Tetris game, developed using Python and Pygame.
Players can move, rotate, and drop blocks to complete lines and score points.
The game includes:
- Level progression with increasing speed
- Pause and restart functions
- โNext blockโ preview
- Score saving with JSON
- Keyboard controls and smooth GUI
| Key | Action |
|---|---|
| โ / โ | Move |
| โ | Rotate |
| โ | Drop faster |
| P | Pause |
| R | Restart |
| ESC | Quit |
- Python 3.10+
- Pygame
- JSON file I/O
- Clone this repository:
git clone https://github.com/tracy-xu0123/Tetris---Python-Pygame.git
- Install dependencies: pip install pygame
- Run the game: python main.py
lang Xu (540194324) COMP9001 โ University of Sydney