Skip to content

Experimenting with making a game running under the wasm32-unknown-unknown target

Notifications You must be signed in to change notification settings

HexyWitch/rust-wasm-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-wasm-game

Experimenting with making a game running under the wasm32-unknown-unknown target

Running native client

Requires that you have the SDL2 development library installed on your computer.

cargo run

Running web client

Uses wasm-bindgen for generating javascript bindings.

Setup

  1. Set your default toolchain to nightly
rustup default nightly
  1. Add the wasm32-unknown-unknown target
rustup target add wasm32-unknown-unknown
  1. Install wasm-bin
$ cargo install --git https://github.com/Healthire/wasm-bin

Building

$ wasm-bin build

The packaged application will be output to ./target/wasm-bin/game

Running

$ wasm-bin run

About

Experimenting with making a game running under the wasm32-unknown-unknown target

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages