roguelike-game/wasm/index.html

30 lines
744 B
HTML
Raw Permalink Normal View History

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Roguelike-game</title>
2022-02-03 16:14:39 -05:00
<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>