forked from github/game-off-2012
-
Notifications
You must be signed in to change notification settings - Fork 26
/
index.html
140 lines (136 loc) · 4.83 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html>
<head>
<title>Zoko</title>
<script type="text/javascript" src="//use.typekit.net/apk7kwq.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<link href="css/font-awesome.css" rel="stylesheet" />
<link href="css/style.css" rel="stylesheet" />
</head>
<body class="tk-nimbus-sans">
<a href="https://github.com/lulea/game-off-2012/"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
<div class="container">
<div id="wrapper">
<div class="content">
<canvas id="zoko" height="450" width="850"></canvas>
<div id="statsOverlay" class="overlay">
<p id="steps">0 steps</p>
<p id="level">Level <span class="levelNumber">1</span></p>
</div>
<div id="menuDialog" class="dialog">
<div class="options">
<h2 class="title">Options</h2>
<button id="continueBtn" class="btn">Continue Game</button>
<button id="nextBtn" class="btn">Next Level →</button>
<button id="previousBtn" class="btn">← Previous Level</button>
</div>
<div class="highscore">
<h2>Highscore</h2>
<table class="table">
<tbody>
<tr>
<td>Level 1
<td>2 steps</td>
</tr>
<tr>
<td>Level 2
<td>3 steps</td>
</tr>
<tr>
<td>Level 3
<td>?</td>
</tr>
<tr>
<td>Level 4
<td>?</td>
</tr>
<tr class="last">
<td>Level 5
<td>?</td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="helpDialog" class="dialog">
<h2>Instructions</h2>
<div class="instructions">
<div class="playerKeys">
<ol class="arrow-keys">
<li>
<a href="#" class="key" id="left">
<span>←</span>
</a>
</li>
<li>
<a href="#" class="key" id="up">
<span>↑</span>
</a>
<a href="#" class="key" id="down">
<span>↓</span>
</a>
</li>
<li>
<a href="#" class="key" id="right">
<span>→</span>
</a>
</li>
</ol>
<p>Control the player</p>
</div>
<div class="playerKeys">
<ol class="arrow-keys">
<li>
<a href="#" class="key" id="left">
<span>a</span>
</a>
</li>
<li>
<a href="#" class="key" id="up">
<span>w</span>
</a>
<a href="#" class="key" id="down">
<span>s</span>
</a>
</li>
<li>
<a href="#" class="key" id="right">
<span>d</span>
</a>
</li>
</ol>
<p>Control the player</p>
</div>
<div class="restartLevelKey">
<a href="#" class="key c82"><span>r</span></a>
<p>Restart level</p>
</div>
</div>
</div>
<div id="dialogOverlay" class="overlay"></div>
<h1 id="logo">zoko</h1>
<div id="btn-group">
<a id="menuBtn" class="icon-btn icon-home" title="Show Menu"></a>
<a id="restartBtn" class="icon-btn icon-undo" title="Restart Level"></a>
<a id="helpBtn" class="icon-btn icon-question-sign" title="Help"></a>
</div>
</div>
</div>
</div>
<footer>
<p class="footer">
A game entry for <a href="https://github.com/blog/1303-github-game-off">GitHub Game Off 2012</a> by <a href="mailto:[email protected]">Samuel Nilsson</a> and <a href="mailto:[email protected]">Sebastian Viklund</a>.
</p>
</footer>
</body>
<script src="js/jquery-1.8.3.min.js"></script>
<script src="js/zoko.js"></script>
<script>
$(function() {
$(document).ready(function() {
container = $('div.container');
zoko = new Zoko(container);
});
});
</script>
</html>