-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (35 loc) · 1.32 KB
/
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
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<title>Multicar</title>
<link rel="stylesheet" href="styles.css">
<!-- we use an importmap to load the three.js library and the croquet library
to avoid having to use a bundler -->
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/",
"@croquet/croquet": "https://cdn.jsdelivr.net/npm/@croquet/[email protected]/pub/croquet.esm.js"
}
}
</script>
</head>
<body>
<!-- On-screen Mobile Controls -->
<div class="controls">
<div class="left-controls">
<button id="btn-left">Left</button>
<button id="btn-right">Right</button>
</div>
<div class="right-controls">
<button id="btn-fwd">Fwd</button>
<button id="btn-bwd">Bwd</button>
</div>
</div>
<!-- the script that contains the main logic of the game -->
<script type="module" src="script.js"></script>
</body>
</html>