An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

Simple Basic Snake Like Game written in Rust (Library version)

![ScreenShot1](https://github.com/lostjared/Snake/blob/main/screens/snake.png?raw=true "screenshot1")

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.