-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (59 loc) · 2.16 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
<!DOCTYPE html>
<html>
<head>
<title>Orbiting Asteroid Blaster</title>
<meta charset="utf-8">
<meta name="description" content="Simple asteroids-like desktop game in 13 kb for js13k 2020">
<meta name="author" content="Luke Nickerson">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="./styles/asteroids.css" rel="stylesheet" />
</head>
<body scroll="no">
<main id="main">
<header>
<div class="title">Orbiting Asteroid Blaster</div>
<dl class="stats">
<div><dt>Asteroids Blasted</dt><dd><span id="count">300</span><span id="total">/300</span></dd></div>
<div><dt>Time (seconds)</dt><dd id="secondsElapsed"></dd></div>
<div><dt>Asteroids/minute</dt><dd id="asteroidsPerMinute"></dd></div>
<div><dt>Shots</dt><dd id="shotsCount"></dd></div>
<div><dt>Accuracy</dt><dd><span id="accuracy"></span>%</dd></div>
<div><dt>Average Speed</dt><dd id="avgSpeed"></dd></div>
<div><dt>Current Speed</dt><dd id="speed"></dd></div>
<div><dt>FPS</dt><dd id="fps"></dd></div>
</dl>
<div id="win">YOU WIN!</div>
</header>
<canvas id="canvas"></canvas>
<section id="intro" style="display:none;">
🖱 Controlled by mouse:
<ul>
<li id="ach-start">Click to start</li>
<li id="ach-rotate">Move mouse to rotate</li>
<li id="ach-shoot">Left-click to Fire</li>
<li id="ach-thrust">Right-click for Thrust</li>
<li id="ach-zoom">Scroll to zoom</li>
</ul>
<p>
Destroy all asteroids to win.<br />Don't fall into the sun.
<br/>Watch out for ricocheting bullets.
</p>
<footer>
Originally created for
<a href="http://js13kgames.com/" target="_blank"
title="Open js13kgames.com in new tab or window">js13kgames</a>
2020
<br /> Theme "404" by Luke
</footer>
</section>
<section id="dead" class="closed">
<strong>You died.</strong>
<p id="sun">The sun is hot! 🌞+🚀=💀</p>
<p id="bullet">Ricochet! 🚀+🔫=💀</p>
<p>Click below or 🔄 Refresh the page (F5) to start over.</p>
<button type="button" id="restart">Restart</button>
</section>
</main>
<script type="module" src="./src/game.js"></script>
</body>
</html>