-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfly.html
39 lines (39 loc) · 1.12 KB
/
fly.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
34
35
36
37
38
39
<!DOCTYPE html>
<html>
<head>
<title>Fly Simulator</title>
<script src="vpu.js"></script>
<script src="simulation.js"></script>
<script src="fly.js"></script>
<script src="swarm.js"></script>
<style>
html {
width: 100%;
height: 100%;
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
}
body {
width: 100%;
height: 100%;
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
}
canvas {
width: 100%;
height: 100%;
image-rendering: pixelated;
background: #101010;
}
</style>
</head>
<body>
<canvas id="canvas" width="320" height="240"></canvas>
</body>
<script>
VPU.init();
Swarm.init();
setInterval(function(){Swarm.loop()}, Swarm.update_speed);
setInterval(function(){Swarm.render()}, Swarm.redraw_speed);
</script>
</html>