-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (66 loc) · 2.03 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Music generated by Mubert https://mubert.com/render -->
<title>FPS Cuber</title>
<style>
body {
margin: 0;
}
canvas {
display: block;
}
#crosshair {
position: fixed;
width: 10px;
height: 10px;
border: 1px solid white;
background-color: rgba(0, 0, 0, 0.5);
top: 50%;
left: 50%;
margin-top: -5px;
margin-left: -5px;
pointer-events: none;
z-index: 100;
}
</style>
</head>
<body>
<div id="crosshair"></div>
<audio id="hit-sound" preload="auto">
<source src="sounds/hit.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<audio id="oof-sound" preload="auto">
<source src="sounds/oof.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<audio id="jump-sound" preload="auto">
<source src="sounds/jump.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<audio id="bling-sound" preload="auto">
<source src="sounds/bling.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<audio id="dead-sound" preload="auto">
<source src="sounds/dead.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<audio id="shoot-sound" preload="auto">
<source src="sounds/shoot.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<audio id="bg-music" loop>
<source src="sounds/vaporwave_electro_parcour_space.mp3" type="audio/mpeg">
</audio>
<script src="lib/three.min.js"></script>
<script src="lib/PointerLockControls.js"></script>
<script src="lib/cannon.min.js"></script>
<script src="src/fps-cuber.js"></script>
</body>
<script defer src='https://static.cloudflareinsights.com/beacon.min.js'
data-cf-beacon='{"token": "585eb0aa0faa47d9b34cb34b0c9adbfe"}'></script>
</html>