-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathindex.html
46 lines (41 loc) · 1.63 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
<!doctype html>
<html>
<head>
<title>Dungeon!</title>
<style>
body { font-family: sans-serif; background: #C5C8D4; }
a, a:active, a:visited { color: blue; text-decoration: none; }
h1 { margin-bottom: 0.1em; }
#myCanvas { border: 1px solid #333; }
div.leftPanel { width: 250px; float: left; }
div.center { text-align: center; }
</style>
<!-- order is important here for dependencies -->
<script type="text/javascript" src="utils.js"></script>
<script type="text/javascript" src="room.js"></script>
<script type="text/javascript" src="dungeon.js"></script>
<script type="text/javascript" src="level.js"></script>
<script type="text/javascript" src="main.js"></script>
</head>
<body onload="Initialize()">
<h1>Dungeon!</h1>
<div class="leftPanel">
<p>Created by <a href="http://nickgravelyn.com">Nick Gravelyn</a></p>
<p>Arrow keys to move around.<br />No goal other than exploring.<br />Use <a href="https://github.com/nickgravelyn/dungeon">the source</a> however you want.<br />Have fun. :)</p>
<p>
Visibility:
<select id="visibility">
<option value="room" selected>Room discovery</option>
<option value="los">Line of sight</option>
<option value="none">None</option>
</select>
<br />
<button onclick="ResetGame()">Reset dungeon</button>
<button onclick="Screenshot()">Take a screenshot</button>
</p>
</div>
<div class="rightPanel">
<canvas id="myCanvas" width="640" height="480">You no HTML5?</canvas>
</div>
</body>
</html>