-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
75 lines (67 loc) · 3.29 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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<title>Demo</title>
<style type="text/css">
html, body {
background-color: #1A1A1A;
color: #FFFFFF;
font-family: Arial, Helvetica, sans-serif;
}
#container {
margin: 0px auto;
width: 640px;
}
#canvas {
border: 1px solid #2F2F2F;
margin: 40px auto 20px;
/* Provides a hint to the user agent about how to handle its image rendering.
* http://phrogz.net/tmp/canvas_image_zoom.html
* http://stackoverflow.com/questions/3900436/image-scaling-by-css-is-there-a-webkit-alternative-for-moz-crisp-edges/8888964
*/
image-rendering: optimizeSpeed; /* Legal fallback */
image-rendering: -moz-crisp-edges; /* Firefox */
image-rendering: -o-crisp-edges; /* Opera */
image-rendering: -webkit-optimize-contrast; /* Webkit */
image-rendering: optimize-contrast; /* CSS3 Proposed */
image-rendering: crisp-edges; /* CSS4 Proposed */
image-rendering: pixelated; /* CSS4 Proposed */
-ms-interpolation-mode: nearest-neighbor; /* IE8+ */
}
#controls {
font-size: 10pt;
line-height: 150%;
}
.key {
border: 1px solid #FFFFFF;
font-family: "Courier New", Courier, monospace;
padding: 0 4px;
}
</style>
<script type="text/javascript" src="lib/impact/impact.js"></script>
<script type="text/javascript" src="lib/game/main.js"></script>
</head>
<body>
<header></header>
<div id="container">
<canvas id="canvas"></canvas>
<div id="controls">
Controls: <br>
<span class="key">Left Mouse Button</span> : Open Menus, Start Game <br>
<span class="key">X</span> : Jump<br>
<span class="key">ENTER</span> : Open Status Screen<br>
<span class="key">ESC</span> : Cancel menus<br>
<span class="key">Down + A</span> : Cast Heal<br>
<span class="key">Down + S</span> : Cast Lightning<br>
<span class="key">Down + F</span> : Cast Fireball<br>
<span class="key">Down + D</span> : Cast Wind<br>
<span class="key">A</span> : Demon Fang<br>
<span class="key">Right/Left Arrow + A</span> : Lightning Blade<br>
<span class="key">Right/Left Arrow + S</span> : Sonic Thrust<br>
<span class="key">Up Arrow + S</span> : Hell Pyre<br>
</div>
</div>
<footer></footer>
</body>
</html>