Skip to content

mariuszmalek/agar-snake-alternative-in-rust

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

rsnake - An implementation of classic snake in rust

This game was built using the piston_window window wrapper.

Download the game

If youre using mac-osx or windows you can either download this game as executeable here - otherwise you can build it locally with cargo.

# run the game
cargo run

# build a binary & execute it
cargo build --release
./target/release/rsnake

Keymap

  • W/A/S/D or Up/Left/Down/Right - Controll snake direction.
  • R - Restart the game.
  • ESC - Quit the game.

Known Flaws / ToDo List

  • There should be an endscreen with restart / quit buttons.
  • The fruit and snake could possibly spawn at the same coordinate / fruits can spawn inside the tail of the snake.

About

Agar.io / Snake.io alternative project in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages