-
Notifications
You must be signed in to change notification settings - Fork 2
/
minecraft.html
43 lines (39 loc) · 1.33 KB
/
minecraft.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
<!DOCTYPE html>
<html>
<head>
<title>Minecraft JS</title>
<style type="text/css">
body {
margin: 0;
}
#autoJumpButton {
position: absolute;
left: 90px;
top: 20px;
}
</style>
</head>
<body>
place blocks with 1=cobble, 2=gras, 3=light, 4=wood, 5=glas. e=remove
<button id="autoJumpButton" onclick = "toggleAutoJump()">AutoJump : On</button>
<script src = "https://cdn.skypack.dev/three@<version>/examples/jsm/controls/OrbitControls.js"></script>
<!-- EXTERNAL -->
<!-- https://github.com/mrdoob/three.js/blob/master/build/three.js -->
<script src = "external/three.js"></script>
<!-- https://github.com/mrdoob/three.js/blob/dev/examples/js/controls/PointerLockControls.js -->
<script src = "external/PointerLockControls.js"></script>
<!-- https://github.com/josephg/noisejs/blob/master/perlin.js -->
<script src = "external/perlin.js"></script>
<!-- https://github.com/mrdoob/stats.js/blob/master/src/Stats.js -->
<script src = "external/stats.js"></script>
<!-- https://github.com/takahirox/takahirox.github.io/blob/master/three.js.mmdeditor/examples/js/SkyShader.js -->
<script src = "external/sky.js"></script>
<script src = "sky.js"></script>
<script src = "night.js"></script>
<script src = "raycasting.js"></script>
<!--
<script src = "shadow.js"></script>
-->
<script src = "main.js"></script>
</body>
</html>