mirror of
https://github.com/OpenBMB/ChatDev.git
synced 2026-05-13 03:53:40 +00:00
35 lines
683 B
Markdown
35 lines
683 B
Markdown
# Modern Tetris Game
|
|
|
|
A feature-rich Tetris implementation in Python using Pygame.
|
|
|
|
## Features
|
|
- Modern GUI with smooth animations
|
|
- Score system and levels
|
|
- Ghost piece preview
|
|
- Next piece preview
|
|
- Hold piece functionality
|
|
- Particle effects for line clears
|
|
- Background music and sound effects
|
|
- High score system
|
|
|
|
## Controls
|
|
- Left/Right Arrow: Move piece
|
|
- Up Arrow: Rotate piece clockwise
|
|
- Z: Rotate piece counter-clockwise
|
|
- Down Arrow: Soft drop
|
|
- Space: Hard drop
|
|
- C: Hold piece
|
|
- P: Pause game
|
|
- ESC: Quit game
|
|
|
|
## Installation
|
|
1. Install Python 3.8+
|
|
2. Install dependencies:
|
|
```bash
|
|
pip install -r requirements.txt
|
|
```
|
|
|
|
3. Run the game:
|
|
```bash
|
|
python tetris.py
|
|
``` |