-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
36 lines (36 loc) · 941 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
<!DOCTYPE html>
<html>
<head>
<title>Buust</title>
<meta charset="utf-8" name="viewport" content="user-scalable=no">
<link href="index.css" rel="stylesheet">
</head>
<body>
<div id="blocker">
Mouse to Look<br>
WASD to Move<br>
Space to Jump<br>
Shift to Dash<br>
Escape to Pause<br>
Click here to Play
</div>
<script>
const blocker = document.getElementById("blocker");
blocker.addEventListener("click", blocker.requestPointerLock);
document.addEventListener("pointerlockchange", e => {
if (document.pointerLockElement) {
blocker.style.visibility = "hidden";
then = undefined;
requestAnimationFrame(frame);
} else {
blocker.style.visibility = "visible";
}
});
</script>
<div id="header"><h1></h1></div>
<script src="three.js"></script>
<script src="param.js"></script>
<script src="input.js"></script>
<script src="index.js"></script>
</body>
</html>