libesz / embedded-snake-rs

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:Apache License 2.0


Languages

Language:Rust 100.0%