https://github.com/lostjared/snake
Game of Snake coded in Rust
https://github.com/lostjared/snake
Last synced: 6 months ago
JSON representation
Game of Snake coded in Rust
- Host: GitHub
- URL: https://github.com/lostjared/snake
- Owner: lostjared
- License: gpl-3.0
- Created: 2023-02-10T08:09:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-10T08:18:44.000Z (over 3 years ago)
- Last Synced: 2024-12-31T05:17:57.528Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Simple Basic Snake Like Game written in Rust (Library version)

Use the arrow keys to move the snake, eat the red dots (apples).
As you move over them the snake will grow. Avoid hitting the out edges of the screen
and coliding the snake with itself.
$ cargo run --release
from this directory to run (needs path to font.ttf)
or to build documentation
$ cargo doc --open
to compile on Windows you will need to link to SDL_ttf 's lib file and set the path to its location
download SDL2_ttf from https://github.com/libsdl-org/SDL_ttf/releases
and set the proper path before compiling with cargo. Then copy SDL2_ttf.dll into the target directory.