/rust-snake

Snake game with rust

Primary LanguageRustMIT LicenseMIT

English | 中文

rust-snake

GitHub Release GitHub Tag GitHub License

rust-snake is a snake game written in rust, using position_window as the game engine. It refers to the rsnake.

Run

cargo

Clone the rust-snake and run it using the cargo run. If you don't have a Rust development environment, install it here first.

git clone https://github.com/seraphembera/rust-snake.git
cd rust-snake
cargo run

linux

Download the executable file and run it.

cd ~/Downloads
chmod +x ./rust-snake-x86_64-linux
./rust-snake-x86_64-linux

windows

Download the executable file and double-click it to run.

Controls

  • Use W/A/S/D or <Up>/<Left>/<Down>/<Right> to control the movement of the snake.
  • When the game ends, press R to restart the game.
  • Use <Esc> to exit the game.

License

MIT License