A Tetris clone written in Rust using the SDL2 graphics library.
- Classic Tetris game mechanics
- Smooth 2D rendering via SDL2
- Keyboard controls
- Score system
- Rust (stable) — install via rustup
- SDL2 — graphics and input
- SDL2_ttf — for rendering text (e.g., score display)
sudo apt install libsdl2-dev libsdl2-ttf-devbrew install sdl2 sdl2_ttfUse vcpkg or manually install SDL2 and SDL2_ttf developer packages.
Make sure the .ddl files are in your PATH or project folder at runtime.
Clone the repository and build in release mode:
git clone https://github.com/CieriA/rusty-tetris
cd rusty-tetris
cargo build --releasecargo run --release- Left Arrow / A — Move the piece left
- Right Arrow / D — Move the piece right
- Down Arrow / S — Soft Drop
- Space — Hard Drop
- Up Arrow / W / Right Control — Rotate the piece clockwise
- Q / Left Control — Rotate the piece counterclockwise
This project uses the following crates:
- sdl2
- rand
TO regenerate documentation locally:
cargo doc --openThis project is licensed under the ISC License. For more info see the LICENSE file.