Skip to content

Commit 8d6bd96

Browse files
Create index.html
1 parent e81af69 commit 8d6bd96

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

index.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE HTML>
2+
<html>
3+
<title>
4+
Bones 'N Souls
5+
</title>
6+
<style>
7+
body { margin: 0; }
8+
canvas { display: block; }
9+
</style>
10+
<script src="Res/Cannon.js"></script>
11+
<script src="Res/Three.js"></script>
12+
<script src="Res/Wasm.js"></script>
13+
<script>
14+
try {
15+
var go = new Go();
16+
WebAssembly.instantiateStreaming(fetch("Res/Game.wasm"), go.importObject).then((result) => {go.run(result.instance);});
17+
} catch(E) {
18+
alert("An error has occured:\n\n" + E + "\n\nPlease reload the game.");
19+
};
20+
</script>
21+
</html>

0 commit comments

Comments
 (0)