21 lines
547 B
HTML
21 lines
547 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Bevy Game</title>
|
|
<style>
|
|
html, body { margin: 0; padding: 0; background: #000; height: 100%; overflow: hidden; }
|
|
canvas { display: block; margin: 0 auto; outline: none; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<script type="module">
|
|
import init from './game.js';
|
|
init().catch((e) => {
|
|
// Bevy uses an exception to hand control to the browser's event loop.
|
|
if (!e.message.includes("Using exceptions for control flow")) throw e;
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|