-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (34 loc) · 1.06 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
<!DOCTYPE html>
<html>
<head>
<title>Spelunker2D - Cave gen test</title>
<!-- Load CSS -->
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/index.css">
<!-- Load libaries -->
<script src="libs/alea.js"></script>
<script src="libs/simplex-noise.js"></script>
<!-- Load assets -->
<script src="assets/assets.js"></script>
</head>
<body>
<!-- Create seed entry form -->
<div id="seed-entry" >
<h1>Cave generation test</h1>
<label for="seed">Seed</label>
<input type="number" id="seed" default="1">
<label for="cutoff">Cutoff</label>
<input type="number" value="0" step="0.05" id="cutoff">
<input type="button" value="Load" id="load">
<!-- Give instructions -->
<p>Use the arrow keys to scroll the map</p>
<p id="status"></p>
</div>
<!-- Create canvas -->
<canvas id="screen">
<h1 class="error">Your browser doesn't support the canvas API.</h1>
</canvas>
<!-- Load main script -->
<script src="js/index.js"></script>
</body>
</html>