/
index.html
49 lines (49 loc) · 1.7 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="user-scalable=no, width=device-height">
<title>FlatRoller</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="jquery-1.6.4.js"></script>
<script src="main.js"></script>
</head>
<body>
<canvas id="game" width="640" height="360"></canvas>
<div id="all">
<div id="controls">
<div id="touch-left">
<div class="help-move">
⇦ Left
</div>
<div class="help-jump">
⇧ Jump
</div>
</div>
</div>
<div id="touch-right">
<div class="help-move">
Right ⇨
</div>
<div class="help-jump">
Jump ⇧
</div>
</div>
<div id="ui">
<h1>FlatRoller canvas game demo</h1>
<p>
Use <strong>left</strong>, <strong>right</strong> arrow keys to move.
<strong>Space</strong> or <strong>up</strong> to jump!
</p>
<p>
On iPad, touch the areas to the left or right to move.
Touch both left and right to jump.
</p>
<p>
<a href="https://github.com/brion/FlatRoller">Fork me on GitHub!</a>
</p>
<p id="debug"></p>
</div>
</div>
</body>
</html>