An open API service indexing awesome lists of open source software.

https://github.com/avdaredevil/webasm-snakes

A basic snake game written with Rust / Webassembly and TS
https://github.com/avdaredevil/webasm-snakes

Last synced: about 1 year ago
JSON representation

A basic snake game written with Rust / Webassembly and TS

Awesome Lists containing this project

README

          

## About
AP-Snakes is a simple game where you control a snake and try to eat as much food as you can.

## Prerequisites
- Install [NodeJs](https://nodejs.org/en/)
- Install [Rust](https://www.rust-lang.org/tools/install)
- Perform one-time setup with `yarn install`
- Perform one-time dependency fetch with `yarn build:rust`
- This will install wasm-pack, and other rust required dependencies

## Running the game
- To run the game, just:
```bash
yarn dev
```
- Navigate to [localhost:8080](http://localhost:8080/) to enjoy the game

## Demo
Snake Game |
--- |
![AP Webassebly Snake Game](https://user-images.githubusercontent.com/5303018/183745696-9643a4b6-14a5-41d5-8b9a-21a05909aa42.gif) |

## Author
Apoorv Verma [@ap.verma](https://www.linkedin.com/in/apoorvverma/)