-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.html
69 lines (69 loc) · 1.86 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>
FC Tank - a coffeescript rewritten of classic 90 tank on Nintendo Family
Computer
</title>
<script type="text/javascript" src="js/jquery-v1.9.1.min.js"></script>
<script type="text/javascript" src="js/lodash-v1.2.1.min.js"></script>
<script type="text/javascript" src="js/kinetic-v4.5.1.min.js"></script>
<script type="text/javascript" src="js/howler-v1.1.5.min.js"></script>
<style type="text/css">
#tank_sprite {
display: none;
}
#canvas {
background: #000;
width: 600px;
height: 520px;
}
#game_instructions {
padding: 2em;
}
#row {
display: flex;
}
body {
background: #999;
}
strong {
font-weight: bold;
}
</style>
</head>
<body>
<img
id="tank_sprite"
alt="tanks"
width="400"
height="360"
src="image/tanks.png"
/>
<div id="row">
<div id="canvas"></div>
<div id="game_instructions">
<dl class="p1">
<dt>P1 Control</dt>
<dd>Press keyboard <strong>UP, DOWN, LEFT, RIGHT</strong> to move</dd>
<dd>Press keyboard <strong>Z</strong> to fire</dd>
<dd>
Press keyboard <strong>SPACE</strong> to toggle 1 user or 2 users
mode
</dd>
<dd>
Press keyboard <strong>ENTER</strong> to start game or toggle game
start/pause
</dd>
</dl>
<dl class="p2">
<dt>P2 Control</dt>
<dd>Press keyboard <strong>W, S, A, D</strong> to move</dd>
<dd>Press keyboard <strong>J</strong> to fire</dd>
</dl>
</div>
</div>
<script type="module" src="src/bootstrap.js"></script>
</body>
</html>