Skip to content

tanav-malhotra/Rusty_Snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rusty_Snake

Snake Game in Rust

This game was improved upon the snake game by Tensor Programming: https://github.com/tensor-programming/snake-tutorial

macOS:

Get the macOS .dmg file here: https://github.com/tanav-malhotra/Rusty_Snake/releases/latest

Windows:

Get the Windows Installer here: https://github.com/tanav-malhotra/Rusty_Snake/releases/latest

Linux:

Get the Linux .AppImage here: https://github.com/tanav-malhotra/Rusty_Snake/releases/latest

Build from source:

Type these commands (either in the terminal for macOS and Linux, or Powershell for Windows):

  • Install Rust if you haven't already (on macOS and Linux only, Windows go here):
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • Clone this repo (or download the zip file, extract it, and then open it up in a terminal):
git clone https://github.com/tanav-malhotra/Rusty_Snake.git
  • Install it:
cd Rusty_Snake
cargo install --force --path .
  • Run the game:
Rusty_Snake
  • (Optional) Move the binary to your desktop: Use your file manager and/or the command line and move the binary from [wherever you cloned the repo]/Rusty_Snake/target/release/Rusty_Snake on macOS and Linux or from [wherever you cloned the repo]\Rusty_Snake\target\release\Rusty_Snake.exe on Windows to your desktop.

Playing the Game!

  • WASD, IJKL, and the Arrow Keys are supported.
  • Press Space and/or the key pointing in the same direction as your snake to quickly boost (speed up) until the direction is changed.