A simple implementation of the classic arcade game Snake using raylib-rs.
W
, A
, S
, D
to change direction. Left-click to restart game.
This project was tested using Windows 10 and Rust 1.70.0, and may not build properly with other systems and/or versions of Rust. To build from source, make sure you have a working Cargo installation.
git clone https://github.com/jkmuriithi/snake-raylib.git
cd snake-raylib
cargo run
# Create a game executable in ./target/release
cargo build --release
- Configuration file system for in-game constants
- Linux/MacOS build tests
Though this was a personal project I made for the sake of learning Rust and 2D graphics programming, I'm open to any and all
PRs which improve it. Before making a PR, please make sure that the crate builds with the latest stable version of Rust, and that
your code has been properly formatted using cargo fmt
.