Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Schr3da/wasm-map-generator-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wasm SDL2 map generator

Source code of Rust/WASM pet project

Wasm Build Instruction/Requirements

  • Proper workin emscripten environment
  • Use set_project_path.sh script to update required template variables in .cargo/config
  • Use cargo build --target wasm32-unknown-emscripten --release
  • Copy the following files into the template folder:
  • target/wasm32-unknown-emscripten/release/deps/game.js
  • target/wasm32-unknown-emscripten/release/deps/game.wasm
  • target/wasm32-unknown-emscripten/release/deps/game.data
  • target/wasm32-unknown-emscripten/release/deps/game.d
  • Use static file of choice to host template folder e.g http-server
  • npm install http-server -g
  • http-server ./template -p 9000
  • Open browser http://127.0.0.1:9000

About

Wasm + SDL2 + Rust Demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published