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
- Host: GitHub
- URL: https://github.com/biomathcode/snake_game
- Owner: biomathcode
- Created: 2023-03-09T12:41:03.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-10T20:08:24.000Z (over 3 years ago)
- Last Synced: 2025-04-02T11:49:35.956Z (about 1 year ago)
- Topics: beginner-friendly, beginner-project, game, rust, wasm
- Language: Rust
- Homepage: https://snake-game-coral.vercel.app
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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