Skip to content

TBeihammer/Snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 = "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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages