48 lines
1.2 KiB
HTML
48 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<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>
|
|
<!--
|
|
<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 = {
|
|
running: true,
|
|
lastTimeStamp: performance.now(),
|
|
controls: JSON.parse(
|
|
localStorage.getItem("controls") || JSON.stringify({
|
|
left: "a",
|
|
right: "d",
|
|
up: "w",
|
|
down: "s",
|
|
undo: "z",
|
|
reset: "r",
|
|
})
|
|
),
|
|
level: 0,
|
|
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>
|