-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
59 lines (46 loc) · 2.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Coins.js</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<!-- Stylesheets -->
<link rel="stylesheet" href="css/game.css">
<!-- three.js -->
<script type="text/javascript" src="js/three.js"></script>
<script type="text/javascript" src="js/libs/stats.min.js"></script>
<script type="text/javascript" src="js/libs/dat.gui.min.js"></script>
<!-- Physics -->
<script type="text/javascript" src="js/physics/physi.js"></script>
<script>
Physijs.scripts.worker = '/assets/js/physics/physijs_worker.js';
Physijs.scripts.ammo = '/assets/js/physics/ammo.js';
</script>
<!-- Shaders -->
<script src="js/shaders/CopyShader.js"></script>
<script src="js/shaders/SMAAShader.js"></script>
<!-- Postprocessing -->
<script src="js/postprocessing/EffectComposer.js"></script>
<script src="js/postprocessing/SMAAPass.js"></script>
<script src="js/postprocessing/RenderPass.js"></script>
<script src="js/postprocessing/MaskPass.js"></script>
<script src="js/postprocessing/ShaderPass.js"></script>
</head>
<body>
<!-- Overlay -->
<div id="overlay">
<!-- Loading! -->
<div id="loader" style="display: none;">
<img src="textures/loader.gif">
<h2>Loading <span style="color: #F5C715;">Coins</span>.js</h2>
</div>
<div id="coin-slot" onclick="createCoin(randomRange(-40,40),randomRange(80,100),randomRange(-20,-100));">
<img src="textures/coin_slot.png">
</div>
</div>
<!-- Container for game -->
<div id="viewport"></div>
<!-- Coins.js -->
<script type="text/javascript" src="js/game.js"></script>
</body>
</html>