-
Notifications
You must be signed in to change notification settings - Fork 0
/
shooter.html
46 lines (39 loc) · 1.38 KB
/
shooter.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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Gravity shooter</title>
<script type="text/javascript" src="shooter.js"></script>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="help">
<p><em>Player 1:</em></p>
<p><span class="key">←</span> rotation <span class="key">→</span></p>
<p>engine <span class="key">↑</span></p>
<p>shoot <span class="key">↓</span></p>
<p><em>Player 2:</em></p>
<p><span class="key">a</span> rotation <span class="key">d</span></p>
<p>engine <span class="key">w</span></p>
<p>shoot <span class="key">s</span></p>
<p><em>Start game</em> <span class="key"> space </span></p>
<p>
Your ship will be destroyed whenever
<ul>
<li>you hit the start</li>
<li>you hit other player's ship</li>
<li>you fly into border</li>
<li>you get shoot</li>
</ul>
</p>
<div style="position:absolute; top: 530px; left: 0px">
<a href="index.html" class="button"><span>Finish</span></a>
</div>
</div>
<div id="game" style="width:800px; height:600px;"></div>
</body>
<script type="text/javascript">
var div = document.getElementById("game");
Elm.embed(Elm.Shooter, div);
</script>
</html>