embedded-snake

Crates.ioembedded-snake
lib.rsembedded-snake
version0.0.2
sourcesrc
created_at2022-11-06 21:35:47.486674
updated_at2022-11-06 21:37:42.87879
descriptionSnake game implementation in Rust with no-std. It uses embedded-graphics as a display target.
homepagehttps://github.com/libesz/embedded-snake-rs/
repositoryhttps://github.com/libesz/embedded-snake-rs/
max_upload_size
id706757
size43,552
Gergo Huszty (libesz)

documentation

README

embedded-snake-rs

Snake game implementation in Rust with no-std. It uses embedded-graphics as a display target.

It might be a useful demo application for embedded projects with any display (supported by embedded-graphics) and at least four buttons.

See the examples on computer, using the embedded graphics simulator.

Note this is a work-in-progress project.

Existing features

  • Works with arbitrary displays (color scheme and resolution are constructor params)
  • Custom colors for the snake and the food
  • Custom food timeout
  • Custom maximum snake length
  • Custom scale (positive integers) for extra-small (or dense) displays

TODO

  • Any sort of game-over condition, such as:
    • Walls (outer or inner)
    • Snake hits itself
Commit count: 14

cargo fmt