-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
155 lines (136 loc) · 5.36 KB
/
Copy pathindex.html
File metadata and controls
155 lines (136 loc) · 5.36 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE html>
<html>
<head>
<title>Tile Map Generator</title>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="resources/icons/favicon.png" />
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
<p id="loading">LOADING...</p>
<video id="background" autoplay src="resources/video/background.mp4"></video>
<!-- MAP GRID -->
<div id="grid"></div>
<canvas id="canvas" width="4096" height="4096" id="canvas"></canvas>
<!-- USER FEATURES -->
<div id="userPanel">
<h3>Map Size</h3>
<input id="number" type="range" min="1" value="16" max="128"
onchange="this.nextElementSibling.innerText = `${this.value}x${this.value} = ${Math.pow(this.value, 2)}`" />
<label>16x16 = 256</label>
<!-- <h3>Terrain Distribution</h3>
<label>
<input class="probability-slider" type="number" min="0" max="100" value="5.55" step=".01" />
Land</label>
<label>
<input class="probability-slider" type="number" min="0" max="100" value="5.55" step=".01" />
Water</label>
<label>
<input class="probability-slider" type="number" min="0" max="100" value="5.55" step=".01" /> Coast
(top)</label>
<label>
<input class="probability-slider" type="number" min="0" max="100" value="5.55" step=".01" /> Coast
(bottom)</label>
<label>
<input class="probability-slider" type="number" min="0" max="100" value="5.55" step=".01" /> Coast
(left)</label>
<label>
<input class="probability-slider" type="number" min="0" max="100" value="5.55" step=".01" /> Coast
(right)</label>
<label>
<input class="probability-slider" type="number" min="0" max="100" value="5.55" step=".01" /> Coast
(top left 1)</label>
<label>
<input class="probability-slider" type="number" min="0" max="100" value="5.55" step=".01" /> Coast
(top left 2)</label>
<label>
<input class="probability-slider" type="number" min="0" max="100" value="5.55" step=".01" /> Coast
(top right 1)</label>
<label>
<input class="probability-slider" type="number" min="0" max="100" value="5.55" step=".01" /> Coast
(top right 2)</label>
<label>
<input class="probability-slider" type="number" min="0" max="100" value="5.55" step=".01" /> Coast
(bottom left 1)</label>
<label>
<input class="probability-slider" type="number" min="0" max="100" value="5.55" step=".01" /> Coast
(bottom left 2)</label>
<label>
<input class="probability-slider" type="number" min="0" max="100" value="5.55" step=".01" /> Coast
(bottom right 1)</label>
<label>
<input class="probability-slider" type="number" min="0" max="100" value="5.55" step=".01" /> Coast
(bottom right 2)</label>
<label>
<input class="probability-slider" type="number" min="0" max="100" value="5.55" step=".01" /> Coast
(diagonal 1)</label>
<label>
<input class="probability-slider" type="number" min="0" max="100" value="5.55" step=".01" /> Coast
(diagonal 2)</label>
<label>
<input class="probability-slider" type="number" min="0" max="100" value="5.55" step=".01" /> Coast
(diagonal 11)</label>
<label>
<input class="probability-slider" type="number" min="0" max="100" value="5.55" step=".01" /> Coast
(diagonal 21)</label>
<p id="probabilities-validation"></p> -->
<h3>Canvas Resolution</h3>
<label for="quality" class="sliderWrapper">
Low
<input id="quality" min="1" max="64" value="64" type="range" />
High
</label>
<h3>Other Settings</h3>
<label for="usePerspective">
<input id="usePerspective" type="checkbox" checked="true" />
Use orthogonal perspective
</label>
<label for="useFloatingAnim">
<input id="useFloatingAnim" type="checkbox" checked="true" />
Use floating animation
</label>
<label for="useHighQualityDownload">
<input id="useHighQualityDownload" type="checkbox" checked="true" />
Use high-quality download
</label>
<hr />
<!-- <div class="btnGroup">
<button id="load">Load Map</button>
<button id="save">Save Map</button>
</div> -->
</div>
<div id="menubtns-wrapper">
<button id="generator">Generate Map</button>
<button id="menu-toggle"></button>
</div>
<button id="download-btn">⤓</button>
<!-- VERSION NUMBER -->
<p id="version">Version unavailable</p>
<!-- TEXTURES PRELOAD (REQUIRED TO WORK PROPERLY) -->
<div id="texturesPreload">
<img src="resources/textures/land.jpg" />
<img src="resources/textures/water.jpg" />
<img src="resources/textures/coastT.jpg" />
<img src="resources/textures/coastB.jpg" />
<img src="resources/textures/coastL.jpg" />
<img src="resources/textures/coastR.jpg" />
<img src="resources/textures/coastTL1.jpg" />
<img src="resources/textures/coastTL2.jpg" />
<img src="resources/textures/coastTR1.jpg" />
<img src="resources/textures/coastTR2.jpg" />
<img src="resources/textures/coastBL1.jpg" />
<img src="resources/textures/coastBL2.jpg" />
<img src="resources/textures/coastBR1.jpg" />
<img src="resources/textures/coastBR2.jpg" />
<img src="resources/textures/coastD1.jpg" />
<img src="resources/textures/coastD2.jpg" />
<img src="resources/textures/coastD11.jpg" />
<img src="resources/textures/coastD21.jpg" />
</div>
<!-- SCRIPTS -->
<script type="text/javascript" src="resources/MapGenResources.js"></script>
<script type="text/javascript" src="resources/MapGenEngine.js"></script>
<script type="text/javascript" src="resources/MapGenGL.js"></script>
<script type="text/javascript" src="resources/DevMode.js"></script>
</body>
</html>