-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (44 loc) · 1.03 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Mars Lander</title>
</head>
<body>
<canvas class="game-canvas"></canvas>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="vendor/keymaster.js"></script>
<script src="./lib/bundle.js"></script>
<style>
body {
background-image: url("mars-pic.png");
background-color: blue;
}
.instructions {
font-family: monospace;
color:white;
background-color: black;
width: 800px;
margin: 0 auto;
text-align: center;
}
.game-canvas {
padding: 0;
margin: auto;
display: block;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
</style>
<div class="instructions">
<div class="general-instructions">
Guide the lander to the red landing spots with the arrow keys.
</div>
<div class="key-descriptions">
Press the up arrow key to fire the thruster and the side arrow keys to change the pitch of the lander.
</div>
</div>
</html>