-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
123 lines (108 loc) · 2.9 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hoverator</title>
<style type="text/css">
body {
padding: 0;
margin: 0;
overflow: hidden;
background: rgb(34, 34, 34);
color: white;
font-family: monospace;
opacity: 0.75;
}
#stage {
width: 100vw;
height: 100vh;
}
.overlay {
position: fixed;
width: 100vw;
z-index: 99;
}
#status {
display: none;
top: 25vh;
height: 25vh;
font-size: 25vh;
line-height: 25vh;
text-align: center;
vertical-align: middle;
}
#status > span {
display: block;
min-height: 25vh;
}
#status > small {
display: block;
font-size: 10vh;
}
#menu {
top: 0;
}
#menu > h1 {
display: block;
width: 100vw;
text-align: center;
font-size: 5em;
margin-bottom: 0;
margin-top: 50px;
}
#howto {
text-align: justify;
max-width: 900px;
margin: auto;
}
#menu-buttons {
display: flex;
flex-direction: row;
justify-content: space-around;
}
#menu-buttons > a {
border: 1px solid white;
font-size: 36px;
padding: 15px;
display: inline-block;
cursor: pointer;
}
#menu-buttons > a:hover {
background: #777777;
}
#howto {
padding: 25px;
font-size: 16px;
}
</style>
</head><body>
<canvas id="stage"></canvas>
<div id="status" class="overlay">
<span>
</span>
<small></small>
</div>
<div id="menu" class="overlay">
<h1>Hoverator</h1>
<div id="howto">
<p>The left and right arrow keys control the engines on each side of the hovercraft.</p>
<p>Hover by holding the left and right arrow keys together. </p>
<p>To turn in a direction, briefly release the other key (e.g., to lean right, briefly take your finger off the left arrow key).</p>
<p>Hard mode adds a box that you have to carry to the end without dropping.</p>
<p>Press the down arrow to restart if you're stuck. Good luck!</p>
</div>
<div id="menu-buttons">
<a id="nrm">Normal</a>
<a id="hrd">Hard</a>
</div>
<a href="https://github.com/vgel/hoverator">
<img
style="position: absolute; top: 0; right: 0; border: 0;"
src="https://camo.githubusercontent.com/52760788cde945287fbb584134c4cbc2bc36f904/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f77686974655f6666666666662e706e67"
alt="Fork me on GitHub"
data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png">
</a>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/planck-js/0.1.34/planck-with-testbed.js"></script>
<script src="./bundle.js"></script>
</body></html>