-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (55 loc) · 1.81 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
57
58
59
60
61
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<!-- Create the canvas that the Kantan code will draw into -->
<canvas id="canvas" oncontextmenu="event.preventDefault()"></canvas>
<!-- Allow the Kantan to access the canvas element -->
<script type='text/javascript'>
var Module = {
canvas: (function() { return document.getElementById('canvas'); })()
};
</script>
<h3>Controls</h3>
<table border="border">
<thead>
<th>Key</th>
<th>Action</th>
</thead>
<tbody>
<tr>
<td><kbd>w</kbd> or <kbd>↑</kbd></td>
<td>move up</td>
</tr>
<tr>
<td><kbd>a</kbd> or <kbd>←</kbd></td>
<td>move left</td>
</tr>
<tr>
<td><kbd>s</kbd> or <kbd>↓</kbd></td>
<td>move down</td>
</tr>
<tr>
<td><kbd>d</kbd> or <kbd>→</kbd></td>
<td>move right</td>
</tr>
<tr>
<td><kbd>space</kbd></td>
<td>interact</td>
</tr>
<tr>
<td><kbd>g</kbd></td>
<td>enable debug mode</td>
</tr>
<tr>
<td><kbd>p</kbd></td>
<td>switch between inside and outside</td>
</tr>
</tbody>
</table>
<script src="index.js"></script>
</body>
</html>