wasm thread
This commit is contained in:
parent
cc2877c9d8
commit
61cb0ce6b4
5 changed files with 131 additions and 8 deletions
10
index.html
10
index.html
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue