axosnake

[![Crates.io](https://img.shields.io/crates/v/axosnake.svg)](https://crates.io/crates/axosnake) [![dependency status](https://deps.rs/repo/gitlab/nycex/axosnake/status.svg)](https://deps.rs/repo/gitlab/nycex/axosnake) [![pipeline status](https://gitlab.com/nycex/axosnake/badges/master/build.svg)](https://gitlab.com/nycex/axosnake/pipelines) ## About axosnake is a snake game written in rust with webassembly ![screenshot](screenshot.png) ## How to run ### Run through web: Install dependencies for web: ```bash cargo install cargo-web ``` Run the web server: ```bash cargo web start --target=wasm32-unknown-unknown ``` ### Run locally: Install axosnake through cargo: ```bash cargo install axosnake ``` Run the binary: ```bash axosnake ``` ### Dependencies: For a list of dependencies look at the [quicksilver dependencies](https://github.com/ryanisaacg/quicksilver#linux-dependencies). ## Demo You can play the game online on http://www.axosnake.tk ## Keybinds ### Movement: - W/Up - Move upwards - A/Left - Move to the left - S/Down - Move downwards - D/Right - Move to the right ### Misc: - R/F5 - Reset the game ## Credits - [logo](logo.png) *"axolotl"* by [@Senk Ju](https://senkju.net) - [font](static/font.ttf) *"EXEPixelPerfect"* by [@Roberto Martínez](https://www.dafont.com/roberto-martinez.d7913) ## License MIT ## Known issues ### Not running smoothly in firefox - Try disabling the `privacy.resistFingerprinting` setting enabled in about:config