-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (80 loc) · 2.71 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Space Invaders</title>
<link rel = "stylesheet" type = "text/css" href = "./css/stylesheet.css" />
<link rel="icon" href="./res/favicon.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://code.createjs.com/easeljs-0.8.2.min.js"></script>
<script src="./js/game.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-103801315-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body onload="init();">
<header>
<section class="spacer"></section>
<img class="logo" src="./res/Space_invaders_logo.png"/>
<section class="icons">
<a href="https://github.com/s-achurra/JS-Project" target="_blank">
<i class="fa fa-github fa-2x" aria-hidden="true"></i>
</a>
<a href="https://linkedin.com/in/stephen-achurra/" target="_blank">
<i class="fa fa-linkedin fa-2x" aria-hidden="true"></i>
</a>
</section>
</header>
<div id="canvasWrap">
<canvas id="board" width="600" height="800"></canvas>
<div id="start" class="overlay">
<br />
<br />
<h1>Welcome to</h1>
<h1>Space Invaders!</h1>
<h2>How to Play:</h2>
<p>
Press the <span>RIGHT ARROW</span> key to move right.
</p>
<p>
Press the <span>LEFT ARROW</span> key to move left.
</p>
<p>
Press the <span>SPACE BAR</span> to fire a laser.
</p>
<section class="button" id="startButton">
<h2><span>CLICK HERE</span> to Start</h2>
</section>
</div>
<div id="loss" class="overlay hidden">
<br />
<br />
<br />
<h1>YOU LOST!</h1>
<section class="button" id="resetButton">
<h2>Click here to Reset</h2>
</section>
</div>
<div id="won" class="overlay hidden">
<br />
<br />
<br />
<h1>YOU WON!</h1>
<section class="button" id="continueButton">
<h2>Click here to</h2>
<h2>Keep Playing</h2>
</section>
</div>
<div id="controls" class="overlay">
<h3 id="pause" class="hidden">PAUSE</h3>
<br />
<h3 id="resume" class="hidden">RESUME</h3>
</div>
</div>
</body>
</html>