Rename projects

This commit is contained in:
Danny McGee
2023-09-29 18:33:00 -04:00
parent 32057039b0
commit bed97cff47
30 changed files with 40 additions and 40 deletions
+19
View File
@@ -0,0 +1,19 @@
import * as studio from "@storyteller/studio";
import "./app.element.scss";
export class AppElement extends HTMLElement {
static observedAttributes = [];
connectedCallback(): void {
// TODO: This siezes up the whole browser for several seconds, presumably
// while the WASM binary is loading. Is there any way to do this
// asynchronously?
// TODO: Since we're using `#[wasm_bindgen]` attributes instead of the
// CLI, we can craft our own JS API to interact with Bevy! \o/ As a start,
// we should exploit this to pass an explicit canvas size to Bevy and keep
// it up to date with the browser viewport size.
studio.init();
}
}
customElements.define("app-root", AppElement);