Snake Game in Rust
This game was improved upon the snake game by Tensor Programming: https://github.com/tensor-programming/snake-tutorial
Get the macOS .dmg file here: https://github.com/tanav-malhotra/Rusty_Snake/releases/latest
Get the Windows Installer here: https://github.com/tanav-malhotra/Rusty_Snake/releases/latest
Get the Linux .AppImage here: https://github.com/tanav-malhotra/Rusty_Snake/releases/latest
- Install Rust if you haven't already (on macOS and Linux only, Windows go here):
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Clone this repo (or download the zip file, extract it, and then open it up in a terminal):
git clone https://github.com/tanav-malhotra/Rusty_Snake.git
- Install it:
cd Rusty_Snake
cargo install --force --path .
- Run the game:
Rusty_Snake
- (Optional) Move the binary to your desktop: Use your file manager and/or the command line and move the binary from [wherever you cloned the repo]/Rusty_Snake/target/release/Rusty_Snake on macOS and Linux or from [wherever you cloned the repo]\Rusty_Snake\target\release\Rusty_Snake.exe on Windows to your desktop.
WASD
,IJKL
, and theArrow Keys
are supported.- Press
Space
and/or the key pointing in the same direction as your snake to quickly boost (speed up) until the direction is changed.