/snake-sdl-rs

learn rust & SDL2 by write a snake game

Primary LanguageRust

learn rust & SDL2 by write a snake game

Quick start

  1. install sdllib first

  2. run snake game

cargo r

TODO

  • draw a game board & snake
  • move the snake
  • check whether snake out of bounds
  • draw window Texture
  • snake body circle check
  • random an egg
  • snake eat egg