-
Notifications
You must be signed in to change notification settings - Fork 110
/
index.html
98 lines (91 loc) · 2.87 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
<!DOCTYPE html>
<html>
<head>
<!--<link href='https://fonts.googleapis.com/css?family=Press+Start+2P' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'>-->
<link rel="stylesheet" href="css/keys.css" type="text/css" />
<style>
@font-face {
font-family: 'Press Start 2P';
src: url(fonts/PressStart2P-Regular.ttf);
}
@font-face {
font-family: "Droid Sans";
src: url('fonts/DroidSans.eot');
src: url('fonts/DroidSans.eot?#iefix') format('embedded-opentype'),
url('fonts/DroidSans.woff2') format('woff2'),
url('fonts/DroidSans.woff') format('woff'),
url('fonts/DroidSans.ttf') format('truetype'),
url('fonts/DroidSans.svg#droid_sansregular') format('svg');
}
html {
width: 100%;
}
body {
background-color: #2c3e50;
margin: 0 0;
padding: 0;
font-family: "Droid Sans", "sans-serif";
color: #bdc3c7;
}
.center {
width: 50%;
display: block;
margin: auto;
padding: 0;
}
h1, p {
text-align: center
}
#canvas {
padding: 0;
margin: auto;
display: block;
border-style: solid;
border-width: 1px;
font-family: 'Press Start 2P';
}
kbd {
font-size: 8pt;
}
</style>
</head>
<body>
<a href="https://github.com/mahsu/MariOCaml"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
<div class="center">
<h1>MariOcaml</h1>
<canvas id="canvas" width="512" height="256"></canvas>
</div>
<div class="center" style="padding:5px">
<h3>How to play:</h3>
<table>
<tr>
<td>
<kbd class="light">←</kbd>/<kbd class="light">A</kbd> 
<kbd class="light">→</kbd>/<kbd class="light">D</kbd>
</td>
<td>Move left/right</td>
</tr>
<tr>
<td>
<kbd class="light">↑</kbd>/<kbd class="light">SPACE</kbd>/<kbd class="light">W</kbd> 
</td>
<td>Jump</td>
</tr>
<tr>
<td>
<kbd class="light">↓</kbd> <kbd class="light">S</kbd> 
</td>
<td>Crouch</td>
</tr>
<tr>
<td>
<kbd class="light">B</kbd> 
</td>
<td>Toggle draw bounding boxes</td>
</tr>
</table>
</div>
<script src="_build/main.d.js"></script>
</body>
</html>