-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
41 lines (37 loc) · 927 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
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Planet Generator</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handjs/1.3.11/hand.min.js"></script>
<script src="http://cdn.babylonjs.com/2-3/babylon.js"></script>
<script src="./game.js"></script>
<style>
html, body {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
#renderCanvas {
width: 100%;
height: 100%;
touch-action: none;
z-index: 1;
}
#hmCanvas {
z-index: 2;
background-color: white;
position: absolute;
top: 0px;
left: 0px;
}
</style>
</head>
<body>
<canvas id="renderCanvas"></canvas>
<canvas id="hmCanvas" height="512" width="512"></canvas>
</body>
<script>
new EDEN.Game();
</script>
</html>