Skip to content

BurNiinTRee/Snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake

This is a snake clone written in Rust with WebAssembly using the stdweb crate. You can play it here.

Usage

Move with the arrow keys.

Building

Install Rust nightly

$ curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly

Install the wasm32-unknown-unknown target

$ rustup target install wasm32-unknown-unknown

Install cargo-web

$ cargo install cargo-web

Either start a simple web server

$ cargo web start

Or generate a static site

$ cargo web deploy