-
Notifications
You must be signed in to change notification settings - Fork 163
/
index.html
85 lines (73 loc) · 2.43 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Gatherer</title>
<script src="index.js"></script>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
}
.box {
width: 10px;
height: 11px;
display: inline-block;
border: 1px solid black;
}
.spoiler {
background-color: #333;
color: #333;
padding: 5px;
}
.spoiler:hover {
color: white;
}
p {
max-width: 800px;
}
</style>
</head>
<body>
<canvas width="300" height="200" id="GameCanvas"></canvas>
<h3>How to play</h3>
<p>
The user controls the player square using the arrow keys.
</p>
<ul>
<li> <span class="box" style="background-color: red;"></span> The red square is the <b>player</b>.</li>
<li> <span class="box" style="background-color: #8b4513;"></span> Brown squares are <b>boxes</b>.</li>
<li> <span class="box" style="background-color: blue;"></span> Blue squares are <b>stones</b>.</li>
<li> <span class="box" style="background-color: #fc0;"></span> Yellow squares are <b>keys</b> <i>or</i> <b>locks</b>
-- we fix
this
in the book.</li>
<li> <span class="box" style="background-color: #ccffcc;"></span> Greenish squares are called <b>flux</b>.</li>
<li> <span class="box" style="background-color: gray;"></span> Gray squares are <b>walls</b>.</li>
<li> <span class="box" style=""></span> White squares are <b>air</b> (empty).</li>
</ul>
<p>
If a box or stone is not supported by anything, it falls. The player can push one stone or box at a time, provided
it
is not obstructed or falling. The path between the box and the lower-right corner is initially obstructed by a lock,
so the player has to get a key to remove it. Flux can be "eaten" (removed) by the player by stepping on it.
</p>
<h3>How to win</h3>
<p>
The objective of the game is to get the box to the lower-right corner, like this:
</p>
<img src="goal.png" width=150 />
<p>
Solution (put your cursor here):
<span class="spoiler">
→ → → ↓
↓ ↓ ← ↑
↓ ← → ↑
← ← → →
↓ → →
</span>
</p>
</body>
</html>