-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
72 lines (71 loc) · 2.06 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
<html>
<head>
<script src='static/bundle.js' defer></script>
<link href="https://fonts.googleapis.com/css?family=Black+Han+Sans" rel="stylesheet">
<style>
body {
margin: 0px;
padding: 0px;
background: #000;
font-family: 'Black Han Sans', sans-serif;
text-shadow: 3px 3px #000;
}
#render-canvas {
image-rendering: pixelated;
width: 100%;
height: 100%;
position: fixed;
left: 0px;
top: 0px;
}
#level {
position: fixed;
top: 8px;
right: 8px;
color: white;
font-size: 32px;
text-shadow: 3px 3px #000;
}
#help-help {
position: fixed;
bottom: 8px;
right: 8px;
color: white;
font-size: 16px;
}
#help-wrapper {
position: fixed;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
#help {
color: white;
font-size: 24px;
width: 50%;
text-align: center;
display: none;
}
a:link, a:visited {
color: white;
text-shadow: none;
}
</style>
</head>
<body>
<canvas id='render-canvas'></canvas>
<div id='level'>Level 1</div>
<div id='help-help'>Press H for help.</div>
<div id='help-wrapper'>
<div id='help'>
Use the arrow keys to move the ball and escape the maze.<br><br>
1-8 to change the resolution (default 4).<br><br>
<a href='https://github.com/wwwtyro/astray-2'>source code</a>
</div>
</div>
</body>
</html>