summaryrefslogtreecommitdiff
path: root/index.html
blob: 9fdf82246184d2da9864809da32849b60d6450d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Centipede</title>
    <link rel="stylesheet" href="styles/style.css">
  </head>

  <body>
    <div style="text-align:center">
      <div class="canvas-holder">
        <canvas id="game-canvas" width="1000" height="1000"></canvas>
        <div class="game-hud" id="hud">
          <p>Hello, world!</p>
        </div>
        <div class="menu" style="display: none" id="menu">
        </div>
      </div>
    </div>

    <script>
      const game = {
        width: document.getElementById('game-canvas').width,
        height: document.getElementById('game-canvas').height,
      };
    </script>

    <script data-main = "src/bootstrap" src = "src/require.js"></script>
  </body>
</html>