initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user