-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (52 loc) · 2.45 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Space Invaders - Pure HTML, CSS and JavaScript game</title>
<link rel="alternate icon" type="image/png" href="https://igasparetto.github.io/space-invaders/favicon.png">
<meta property="og:locale" content="en_GB" />
<meta property="og:site_name" content="Space Invaders by Ivan Gasparetto" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Space Invaders - Pure HTML, CSS and JavaScript" />
<meta property="og:description" content="Space Invaders recreated just for run." />
<meta property="og:url" content="https://igasparetto.github.io/space-invaders/" />
<meta property="og:image" content="https://igasparetto.github.io/space-invaders/image/screenshot.png" />
<meta property="og:image:secure_url" content="https://igasparetto.github.io/space-invaders/image/screenshot.png" />
<meta property="og:image:width" content="1024" />
<meta property="og:image:height" content="576" />
<link rel="stylesheet" type="text/css" media="screen" href="css/styles.css?v8">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600&display=swap" rel="stylesheet">
</head>
<body>
<main>
<h1 id="gameName"><span>Space Invaders</span></h1>
<div id="screen" tabindex="0">
<div id="player"></div>
</div>
<p>Phase: <span id="phase">0</span> | Kills: <span id="kills">0</span> | Record: <span id="record">0</span></p>
<p>Press "s" to start, "p" to pause and "space bar" to shoot, left and right arrows to move.</p>
<div id="controls">
<div>
<button id="btnLeft" title="Left">↞</button>
<button id="btnRight" title="Right">↠</button>
<button id="btnFire" title="Fire!">•</button>
<button id="btnStart">Start</button>
</div>
</div>
</main>
<footer>
<p>© Ivan Gasparetto</p>
</footer>
<script src="js/lib/gameEvent.js?v8"></script>
<script src="js/lib/input.js?v8"></script>
<script src="js/lib/entity.js?v8"></script>
<script src="js/lib/player.js?v8"></script>
<script src="js/lib/bullet.js?v8"></script>
<script src="js/lib/enemy.js?v8"></script>
<script src="js/lib/game.js?v8"></script>
<script src="js/spaceInvaders.js?v8"></script>
</body>
</html>