1
0
Fork 0
roguelike-game/wasm/index.html

30 lines
744 B
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Roguelike-game</title>
<style>
html, body {
background: #000;
width: 100%;
height: 100%;
margin: 0;
}
body {
display: flex;
}
canvas { margin: auto; }
</style>
</head>
<body>
<canvas id="canvas" width="640" height="480"></canvas>
<script src="roguelike_tutorial.js"></script>
<script>
window.addEventListener('load', async () => {
await wasm_bindgen('roguelike_tutorial_bg.wasm');
});
</script>
</body>
</html>