Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ibaryshnikov/sf-workshop-2019-08-28
Materials for WebAssembly workshop
https://github.com/ibaryshnikov/sf-workshop-2019-08-28
Last synced: 2 months ago
JSON representation
Materials for WebAssembly workshop
- Host: GitHub
- URL: https://github.com/ibaryshnikov/sf-workshop-2019-08-28
- Owner: ibaryshnikov
- Created: 2019-08-21T14:19:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-24T22:47:59.000Z (over 2 years ago)
- Last Synced: 2023-12-15T04:33:45.123Z (about 1 year ago)
- Language: Rust
- Size: 11.7 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust and WebAssembly workshop
Let's build a 2d shooter using canvas, wasm-bindgen and wasm-pack
## Environment setup
```bash
cargo install wasm-bindgen-cli --version 0.2.83
# optionally, https static server
cargo install https
```## Building
```bash
cargo build --release --target wasm32-unknown-unknown
wasm-bindgen --out-dir pkg --target web ./target/wasm32-unknown-unknown/release/shooter.wasm
```## Running
```bash
http
```alternatively
```bash
python -m SimpleHTTPServer
```then navigate to `host:port`