4 releases (2 breaking)
0.3.1 | Nov 19, 2019 |
---|---|
0.3.0 | Nov 19, 2019 |
0.2.0 | Nov 19, 2019 |
0.1.0 | Nov 14, 2019 |
#3 in #wip
10KB
90 lines
Snake (WIP)
A snake game written with Rust and ncurses. Also has a public API for making your own snake game (in Rust).
Installation
$ cargo install snake
Using the API
Documentation can be found here
lib.rs
:
Snake is a crate that provides an API to help people develop snake games without having to deal with all the intricacies of how one works.
Currently, we only provide a low level API, meaning that you still need to deal with the game logic such as moving the snake, or checking whether it has crashed into a wall, however these have been abstracted into single function calls. This gives you fine grained control over how the game works, without forcing you to understand exactly how the different components work.
See our exported binary as an example of how to use our API.
In the future, we will also provide a much higher level framework, for people to make working snakes games in a matter of minutes. Watch our github repository for all future developments.
Dependencies
~0.7–1.4MB
~25K SLoC