https://github.com/phantomion/snake_game
This is a simple implementation of the classic snake game in rust
https://github.com/phantomion/snake_game
rust snake snake-game
Last synced: about 1 year ago
JSON representation
This is a simple implementation of the classic snake game in rust
- Host: GitHub
- URL: https://github.com/phantomion/snake_game
- Owner: phantomion
- License: mit
- Created: 2020-03-19T22:07:52.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-13T23:45:40.000Z (over 5 years ago)
- Last Synced: 2024-10-15T04:01:43.906Z (over 1 year ago)
- Topics: rust, snake, snake-game
- Language: Rust
- Size: 128 KB
- Stars: 16
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# My snake game
Looks like this. This is with Roboto Mono Nerd Font. If you use a different font it may look different or distorted.

## Install rust
In order to play this you gotta have rust installed in your system.
You can do that with `sudo pacman -S rustup` (or any other package manager) and
then `rustup update stable`.
## Run snake_game
Simply `cargo run` to run this or `cargo install --path .` to install it.
### Keybindings
`w,a,s,d` like any game ever or `h,j,k,l` for vim users.`qq` to quit at any time.
`Space` to pause/start.
### Width and height
You can change the width and height of the game with `-h` and `-w` options(e.g. -h 20 -w 30).