-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
56 lines (48 loc) · 1.95 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/p5.js"></script>
<script src="index.js"></script>
<script src="lib/utils.js"></script>
<script src="lib/draw.js"></script>
<script src="lib/level.js"></script>
<script src="lib/pathfinder.js"></script>
<script src="lib/playerControls.js"></script>
<script src="lib/optimizer.js"></script>
<script src="lib/generator.js"></script>
<title>Sokoban lvl generator</title>
</head>
<body>
<div>
<div class="title">
<h1>Sokoban Random Level Generator </h1>
<h3>Generate a random level and solve it</h3>
</div>
</div>
<div class="container">
<div class="instructions buttonbox">
<div id="buttoncontainer">
<br>
<button id="generateButton" class="btn" color="white" onClick="randomLevel()">
<b>Generate Random</b></button>
<br>
<button id="optimizeButton" class="btn" color="white" onClick="optimize(500)">
<b>Optimize Level</b></button>
</div>
<div class="slideContainer">
<div id="sizeTxt" style="color: rgb(255, 255, 255)">size of level</div>
<input type="range" min="7" max="20" value="10" class="slider" id="sizeSlider"
onchange="displayHtmlValues()">
<div id="boxTxt" style="color: rgb(255, 255, 255)">number of boxes</div>
<input type="range" min="1" max="10" value="3" class="slider" id="numSlider"
onchange="displayHtmlValues()">
</div>
</div>
<div id="canvas1" class="canv"></div>
<img src="assets/instructions.jpg" alt="move: arrowkeys; next Level: enter; revert step: z"
class="instructions">
</div>
</div>
</body>
</html>