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

https://github.com/biomathcode/snake_game

Snake game with rust, wasm and javascript
https://github.com/biomathcode/snake_game

beginner-friendly beginner-project game rust wasm

Last synced: about 1 month ago
JSON representation

Snake game with rust, wasm and javascript

Awesome Lists containing this project

README

          

## Snake game build with Rust, WASM and Javascript

How does it works?

- We are creating a pkg file that is generated from the rust code inside src/lib.rs
- Then we are adding the pkg as npm dependency inside the view package.json. Please see the file to get better understanding
- We are call the rust function compiled into wasm inside the `view/index.ts`
- for deployment root file index.js and public folders are used.
- root public folder and view/public folders are same