This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·60 lines (51 loc) · 1.77 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
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Choc 3D</title>
<link type="text/css" rel="stylesheet" href="/css/reset.css" media="screen" />
<style>
html, body, #container {
background: #000000;
width: 100%;
height: 100%;
overflow:hidden;
}
</style>
</head>
<body>
<div id="container"></div>
</body>
<script src="js/libs/dat.gui.min.js"></script>
<script src="js/libs/stats.min.js"></script>
<script src="js/libs/three.min.js"></script>
<script src="js/libs/tween.min.js"></script>
<!--script src="choc3d/build/choc3d.js"></script-->
<script src="choc3d/src/Choc3D.js"></script>
<script src="choc3d/src/apps/App.js"></script>
<script src="choc3d/src/objects/Object.js"></script>
<script src="choc3d/src/objects/Ball.js"></script>
<script src="choc3d/src/objects/Plane.js"></script>
<script src="choc3d/src/physics/Physics.js"></script>
<script src="choc3d/src/scenes/Choc3DScene.js"></script>
<script src="js/Sparks.js"></script>
<script src="js/controls/OrbitControls.js"></script>
<script src="js/shaders/SkyShader.js"></script>
<script src="js/runs/Run.js"></script>
<script type="text/javascript">
(function() {
var container = document.getElementById('container');
var run = new Choc3D.Run(container);
var lastTime = Date.now();
var animate = function(currTime) {
requestAnimationFrame(animate);
run.animate(currTime - lastTime);
lastTime = currTime;
};
animate(Date.now());
window.addEventListener( 'resize', function() {
run.reshape();
}, false);
}());
</script>
</html>