wasm thread

This commit is contained in:
Nixon 2022-08-26 18:38:52 +08:00
commit 61cb0ce6b4
5 changed files with 131 additions and 8 deletions

View file

@ -5,9 +5,13 @@
<title>Bevyjam</title>
</head>
<body>
<script type="module">
import init from './target/bevyjam.js'
init()
<script src="./target/bevyjam.js"></script>
<script type="text/javascript">
wasm_bindgen("./target/bevyjam_bg.wasm").then((wasm) =>{
wasm.run();
});
// import init from './target/bevyjam.js'
// init()
</script>
</body>
</html>