-
Notifications
You must be signed in to change notification settings - Fork 1
/
editor.html
71 lines (56 loc) · 2.04 KB
/
editor.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
68
69
70
71
<!DOCTYPE html>
<html>
<head>
<title>Editor</title>
</head>
<body>
<!-- Stylesheet -->
<link href="css/editor.css" rel="stylesheet" type="text/css">
<!--webcraft-->
<script src="js/webcraft/glMatrix-1.2.min.js" type="text/javascript"></script>
<script src="js/webcraft/blocks.js" type="text/javascript"></script>
<script src="js/webcraft/helpers.js" type="text/javascript"></script>
<script src="js/webcraft/world.js" type="text/javascript"></script>
<script src="js/webcraft/render.js" type="text/javascript"></script>
<script src="js/webcraft/player.js" type="text/javascript"></script>
<script src="js/webcraft/sight.js" type="text/javascript"></script>
<script src="js/webcraft/fullScreen.js" type="text/javascript"></script>
<script src="js/block42/Palette.js" type="text/javascript"></script>
<!--three.js-->
<script src="js/threejs/three.js"></script>
<script src="js/threejs/threejsplugin/OrbitControls.js"></script>
<!--vox.js-->
<script src="js/voxjs/vox.min.js"></script>
<script src="js/block42/Exporter.js" type="text/javascript"></script>
<script src="js/block42/Editor.js" type="text/javascript"></script>
<!-- Render surface -->
<canvas id="renderSurface"></canvas>
<!-- main UI -->
<div id="blocker">
<div id="instructions">
<span style="font-size:40px" id ="playBtn">Click to play</span>
<br />
(W, A, S, D = Move, left click to destroy block, right click to place block)
<br />
<button id="FullScreen">Full Screen </button>
<button id="Save" onclick="OnBtnSave()">Save </button>
<input id ="flyingMode" type="checkbox" onclick="OnCheckboxFlyingMode(this)"name="vehicle" value="Car" checked>flying Mode<br>
</div>
</div>
<!-- Palette -->
<div id="palette">
<table id="paletteTable"></table>
<div id ="colorBoard"></div>
</div>
<!-- cross hair -->
<div id= 'sight1'></div>
<div id= 'sight2'></div>
<script type="text/javascript">
Editor.init();
</script>
<form action="./uploadVox" method="post" id="editForm">
<input type="text" name="fileName" id="fileName">
<input type="text" name="contect" id="fileName">
</form>
</body>
</html>