English | 中文
rust-snake
is a snake game written in rust, using position_window as the game engine. It refers to the rsnake.
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
Download the executable file and run it.
cd ~/Downloads
chmod +x ./rust-snake-x86_64-linux
./rust-snake-x86_64-linux
Download the executable file and double-click it to run.
- 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.