forked from foolswood/Hexagongame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
instructions.html
49 lines (44 loc) · 2.04 KB
/
instructions.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
<html>
<h1>How to play</h1>
<body>
<object id="A" type="image/svg+xml" data="hexagons.svg" width="150" height="150"></object>
<p>The player marker may move through sides that match the its colour. In this case it may move through the red sides.</p>
<object id="B" type="image/svg+xml" data="hexagons.svg" width="150" height="150"></object>
<p>If the player marker is white it may move through sides of any colour. Any marker colour may move through a white side.</p>
<object id="C" type="image/svg+xml" data="hexagons.svg" width="150" height="150"></object>
<p>The aim is to get the player marker to the finish ring.</p>
<object id="D" type="image/svg+xml" data="hexagons.svg" width="150" height="150"></object>
<p>The player marker changes colour to that of the hexagon which was just exited.</p>
<p>If you get stuck click on the player marker to return to the begining of a maze. If you are already at the start of a maze clicking on the player marker returns you to the menu.</p>
<p>The level selection menus are made of grey hexagons, click on one to play that maze. The menu itself eventually becomes a maze too.</p>
</body>
<script src="svg_interface.es" type="text/ecmascript"></script>
<script src="serialiser.es" type="text/ecmascript"></script>
<script>
window.onload = function() {
encircled = [' R ', ' g ', 'BrGbB', ' gbr ', 'R B R']
var i = new SVGInterface("A")
loadMaze(encircled, i)
i.playerMarker.position = [1,1]
i.playerMarker.visible = true
i.playerMarker.colour = "r"
var j = new SVGInterface("B")
loadMaze(encircled, j)
j.playerMarker.position = [1,1]
j.playerMarker.visible = true
j.playerMarker.colour = "w"
var k = new SVGInterface("C")
loadMaze(['RgB'], k)
k.playerMarker.position = [0,0]
k.playerMarker.visible = true
k.playerMarker.colour = "w"
k.endMarker.position = [1,0]
k.endMarker.visible = true
var l = new SVGInterface("D")
loadMaze(['RgB'], l)
l.playerMarker.position = [1,0]
l.playerMarker.visible = true
l.playerMarker.colour = "r"
}
</script>
</html>