BBIY/index.html

47 lines
1.2 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
<head>
2022-04-01 19:12:37 -04:00
<title>Big Blue Is You!</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>
2022-04-05 19:33:25 -04:00
<!--
<div class="game-hud" id="hud">
<p>Hello, world!</p>
</div>
2022-04-05 19:33:25 -04:00
-->
<div class="menu" style="display: none" id="menu">
</div>
</div>
</div>
<script>
const game = {
running: true,
lastTimeStamp: performance.now(),
controls: JSON.parse(
localStorage.getItem("controls") || JSON.stringify({
left: "ArrowLeft",
right: "ArrowRight",
up: "ArrowUp",
down: "ArrowDown",
undo: "z",
reset: "r",
})
),
level: 0,
2022-04-02 18:04:13 -04:00
canvas: {
width: document.getElementById('game-canvas').width,
height: document.getElementById('game-canvas').height,
context: document.getElementById('game-canvas').getContext("2d"),
},
};
</script>
<script data-main = "src/bootstrap" src = "src/require.js"></script>
</body>
</html>