From 4d0a8140130ebd0f46744b86eeb2a708657a942e Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Sun, 16 Feb 2025 22:55:43 -0500 Subject: Switch to workspace --- crates/client/src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 crates/client/src/lib.rs (limited to 'crates/client/src/lib.rs') diff --git a/crates/client/src/lib.rs b/crates/client/src/lib.rs new file mode 100644 index 0000000..3298f07 --- /dev/null +++ b/crates/client/src/lib.rs @@ -0,0 +1,10 @@ +mod common; + +#[cfg(target_arch = "wasm32")] +use wasm_bindgen::prelude::*; + +#[cfg(target_arch = "wasm32")] +#[wasm_bindgen] +pub async fn main_js() { + teleia::run(240, 160, common::client::Game::new).await; +} -- cgit v1.2.3