-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (49 loc) · 1.77 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<title>Pig Pursuit</title>
<link rel="stylesheet" type="text/css" href="css/styles.css" />
</head>
<body>
<header>
<h1>Pig Pursuit</h1>
<p>A 2D platformer/shooter built using HTML5, JavaScript, and the canvas.</p>
</header>
<section id="game">
<input type="button" id="pause" value="Pause Game" />
<input type="button" id="reset" value="Reset Game" />
</section>
<section id="instructions">
<ul>
<li>Use the left/right arrow keys or the A and D keys to move.</li>
<li>Hit the spacebar to jump.</li>
<li>Use the mouse cursor to aim and click the left mouse button to shoot.</li>
</ul>
</section>
<footer>
<p id="copyright">
Copyright © 2012 <a href="http://stevenbenner.com/">Steven Benner</a>.
</p>
</footer>
<script type="text/javascript" src="js/pig.js" charset="utf-8"></script>
<script type="text/javascript" src="js/pig.objects.js" charset="utf-8"></script>
<script type="text/javascript" src="js/pig.gfx.js" charset="utf-8"></script>
<script type="text/javascript" src="js/pig.audio.js" charset="utf-8"></script>
<script type="text/javascript" src="js/pig.core.js" charset="utf-8"></script>
<script type="text/javascript" src="js/levels/pig.level0.js" charset="utf-8"></script>
<script type="text/javascript" src="js/levels/pig.level1.js" charset="utf-8"></script>
<script type="text/javascript" src="js/levels/pig.level2.js" charset="utf-8"></script>
<script type="text/javascript">
window.onload = function() {
pig.core.init(new pig.objects.level1());
};
document.getElementById('pause').onclick = function() {
pig.core.pause();
};
document.getElementById('reset').onclick = function() {
pig.init(new pig.objects.level1());
};
</script>
</body>
</html>