-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (52 loc) · 2.07 KB
/
index.html
File metadata and controls
56 lines (52 loc) · 2.07 KB
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
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>WebCraft</title>
<link rel="stylesheet" href="css/default.css">
<script src="lib/jquery-1.7.2.min.js"></script>
<script src="lib/gl-matrix-min.js"></script>
<script src="src/Utils.js"></script>
<script src="src/Main.js"></script>
<script src="src/input/Input.js"></script>
<script src="src/gfx/Renderer.js"></script>
<script src="src/gfx/Renderable.js"></script>
<script src="src/gfx/WorldRenderer.js"></script>
<script src="src/gfx/Chunk.js"></script>
<script src="src/block/Block.js"></script>
<script src="src/world/World.js"></script>
<script src="src/entity/AABB.js"></script>
<script src="src/entity/Entity.js"></script>
<script src="src/entity/EntityPlayer.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-33182253-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body id="body">
<div id="wrapper">
<div id="container">
<canvas id="canvas"></canvas>
<div id="fps"></div>
<div id="debug"></div>
</div>
<div id="text">
Minecraft like voxel engine build in JavaScript. It uses WebGL, which most newer browsers support.<br>
Feel free to see the (undocumented) code using Ctrl + U.<br>
<br>
Controls:<br>
Clicking the canvas makes the game fullscreen, press Esc to exit.<br>
WASD to move the player<br>
Mouse to move the camera<br>
Left mouse click removed the selected block<br>
Right mouse click places the selected block<br>
</div>
</div>
</body>
</html>