-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
executable file
·71 lines (63 loc) · 2.72 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Supreme Mech Explosion</title>
<link rel="stylesheet" href="css/normalize.css">
<link href='http://fonts.googleapis.com/css?family=Kavoon|Offside' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/style.css" media="screen" type="text/css" />
</head>
<body>
<h2 class="title">Supreme Mech Explosion</h2>
<div class="game">
<div class="info">
<div class="level">Level <span id="level">1</span></div>
<div class="audioMuter" onclick="mute()">Music is now <span id="musicMuter">On</span></div>
<div class="score">Score <span id="score"></span></div>
</div>
<div id="loading">Click me to play!</div>
<div class="canvas">
<canvas id="background" width="360" height="480">
Whoops, looks like your browser does not support some thing this game need. <canvas> to be specific.
</canvas>
<!-- The canvas for all enemy ships and bullets -->
<canvas id="main" width="360" height="480">
</canvas>
<!-- The canvas the ship uses (can only move up one forth the screen.) -->
<canvas id="ship" width="360" height="480">
</canvas>
<div class="game-over" id="game-over">You're dead :(
<p><div class="restartBtn" onclick="game.restart()">Try again!</div></p>
<p class="small">(hit R to restart)</p>
</div>
<div id="level-up">
Level up!
</div>
</div>
<div id="lives">
<img src="images/live.png" alt="" />
<img src="images/live.png" alt="" />
<img src="images/live.png" alt="" />
</div>
</div>
<div class="content">
<p>Control the spaceship with <code>arrow keys</code>, shoot with <code>space</code></p>
<p>Hit <code>M</code> to mute the music.</p>
<p>You have three lives, make use of those. Have fun!</p>
<p>This game was made for learning purposes and is far from ideal. Works best with Chrome.</p>
<p>Get source at <a href="http://github.com/argshook/SupremeMechExplosion">github</a>. Find me <a href="http://twitter.com/argshook">@argshook</a></p>
</div>
<!-- <script src="js/index.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','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-44436599-1', 'sukalbami.lt');
ga('send', 'pageview');
</script>
<script src="//static.getclicky.com/js" type="text/javascript"></script>
<script type="text/javascript">try{ clicky.init(100658535); }catch(e){}</script>
</body>
</html>