~bigbes/game-prototype-ftl

ref: 7d266a3ed0ff36694b042467963d582a7b694405 game-prototype-ftl/web/index.html -rw-r--r-- 526 bytes
7d266a3e — Eugene Blikh fix(wasm): set go.env to empty object 6 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>ftl-shape</title>
  <style>body { margin: 0; background: #000; } canvas { display: block; margin: 0 auto; }</style>
</head>
<body oncontextmenu="return false">
  <canvas id="ebiten" width="1280" height="720"></canvas>
  <script src="wasm_exec.js"></script>
  <script>
    const go = new Go();
    go.env = {};
    WebAssembly.instantiateStreaming(fetch("main.wasm"), go.importObject)
      .then((r) => go.run(r.instance));
  </script>
</body>
</html>