Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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`