diff --git a/demo/README.md b/demo/README.md index ad7baa8..4f2b82a 100644 --- a/demo/README.md +++ b/demo/README.md @@ -1,6 +1,10 @@ # Demo application for mapgen +## Build the project: +``` +wasm-pack build +``` This app uses: * [Urizen OneBit Tilesets](https://vurmux.itch.io/urizen-onebit-tilesets) \ No newline at end of file diff --git a/demo/src/lib.rs b/demo/src/lib.rs index 1e83b62..639b37e 100644 --- a/demo/src/lib.rs +++ b/demo/src/lib.rs @@ -11,7 +11,7 @@ pub fn main() -> Result<(), JsValue> { // Manufacture the element we're gonna append let val = document.create_element("p")?; - val.set_inner_html("Hello from Rust!"); + val.set_inner_html("Hello from Rust! 1"); body.append_child(&val)?; diff --git a/demo/www b/demo/www new file mode 160000 index 0000000..9ac3dff --- /dev/null +++ b/demo/www @@ -0,0 +1 @@ +Subproject commit 9ac3dff9ebea4675e5c478bcdcbc0fd547d1529f