- Box destruction gameplay featuring classic pieces
- Modern graphical interface with vibrant colors and visual effects
- Progressive scoring system based on the number of cleared lines
- Automatic difficulty increase as the level rises
- Intuitive controls with keyboard support
- Ghost piece for better placement visualization
- Pause and restart system
- Modular codebase following Rust best practices
- Left/Right Arrows: Move piece horizontally
- Down Arrow: Move piece downward
- Up Arrow: Rotate piece
- Spacebar: Hard drop (instant fall)
- P: Pause/Unpause game
- R: Restart game
- ESC: Exit game
- 1 line: 100 points × level
- 2 lines: 300 points × level
- 3 lines: 500 points × level
- 4 lines (Destruction): 800 points × level
- Hard drop: 2 points per dropped line
The level increases every 10 cleared lines. Drop speed increases with level, making the game more challenging.
- Rust (version 1.70 or higher)
- Cargo
- Clone the repository:
git clone https://github.com/guicybercode/blockdestroy/tree/main
cd purple-box-destruction- Build and run the game:
cargo run --releasecargo build --releasebuild in target/release/purple-box-destruction.
src/
├── main.rs # Ponto de entrada e loop principal
├── game.rs # Lógica principal do jogo
├── tetromino.rs # Definição das peças e suas rotações
├── board.rs # Gerenciamento do tabuleiro e colisões
├── ui.rs # Interface do usuário e elementos visuais
└── audio.rs # Sistema de áudio (placeholder)
- Rust: Main Language
- ggez: 2D Gaming
- rand: Random Numbers
- serde: Future hihihi
하나님이 世界를 이처럼 愛하사 獨生子를 주셨으니 이는 그를 信하는 者마다 滅亡하지 않고 永生을 얻게 하려 하심이라
