Tell bevy to find the canvas with ID "#boids-canvas" instead of creating it's own.
18 lines
404 B
HTML
18 lines
404 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
|
|
<body style="margin: 0px;">
|
|
<canvas id="boids-canvas" width="1280" height="720"></canvas>
|
|
<script type="module">
|
|
import init from './boids.js'
|
|
|
|
init().catch((error) => {
|
|
if (!error.message.startsWith("Using exceptions for control flow, don't mind me. This isn't actually an error!")) {
|
|
throw error;
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|