-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
33 lines (31 loc) · 857 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<title>Flocking Example</title>
<link rel="prefetch" href="assets/fonts/Inconsolata.ttf" />
<link rel="prefetch" href="assets/sprite/spacefield.png" />
<link rel="prefetch" href="assets/sprite/ship.png" />
<style>
html {
height: 100vh;
}
body {
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
canvas {
touch-action: none;
}
</style>
</head>
<body>
<script type="module">
import init from "./dist/release/bevy_test.js";
init("./dist/release/bevy_test_bg-optimized.wasm");
</script>
</body>
</html>