Skip to content
No description, website, or topics provided.
Rust
Branch: master
Clone or download

readme.md

Snake

A simple game made with Rust using piston in order for me to get familiar with the Rust programming language and the Rust - Game engine piston

Image of game

Build and Run

Requirements

Microsoft Visual C++ 2015 Runtime is required to run the game. This can be downloaded at: https://www.microsoft.com/en-us/download/details.aspx?id=48145.

Compiled with rust 1.19.0. Get it here: https://www.rust-lang.org/en-US/install.html

Hardware supporting OpenGL 3.2/2.1, else it might not work on some mobile graphic cards (Notebooks etc.)

Gameplay

The classic snake - game. Get the fruit and avoid your tail and the border. The snake also speeds up as you aquire more food. Personal record: 69

Controls

  • Arrow Keys - Move the snake
  • SPACE - Restart the game
  • Escape - Quit the game

Dependencies

Piston (see https://github.com/PistonDevelopers/piston)

  • piston = "0.31.1"
  • piston2d-graphics = "0.21.1"
  • pistoncore-glutin_window = "0.35.0"
  • piston2d-opengl_graphics = "0.40.0"

Rand - crate

  • rand = "0.3"

Author

Acknowledgments

  • Luis Hernandez Cruz's hit_n_run for giving me some insight into game programming with rust.
You can’t perform that action at this time.