A clean Snake clone made with Rust and SDL2.
- Classic snake mechanics
- Score system
- Keyboard controls
- Rust (stable) — install via rustup
- SDL2 — graphics and input
- SDL2_ttf — for rendering text (e.g., score display)
sudo apt install llibsdl2-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.come/{io}/rusty-tetris
cd rusty-tetris
cargo build --releasecargo run --release- Arrow keys / WASD to move the snake
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.