-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (55 loc) · 2.36 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML5 Pacman</title>
<style type="text/css">
@font-face {
font-family: 'BDCartoonShoutRegular';
src: url('BD_Cartoon_Shout-webfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
#pacman {
height:450px;
width:342px;
margin:20px auto;
}
#shim {
font-family: BDCartoonShoutRegular;
position:absolute;
visibility:hidden
}
h1 { font-size: 2.2em; }
h1, h4 { font-family: BDCartoonShoutRegular; text-align:center; }
h4 { margin-bottom: 2em; }
div#pacman canvas { border: 5px solid #000; box-shadow: 0 0 10px 3px #aaa; border-radius: 5px; }
html { min-height: 100%; box-shadow: inset 0 0 10px 3px #aaa; }
body { width:342px; margin:0px auto; font-family:sans-serif; }
a { text-decoration:none; }
p { text-align: center; font-family: BDCartoonShoutRegular; font-size: .7em; }
</style>
</head>
<body>
<div id="shim">shim for font face</div>
<h1>Pacman AI</h1>
<div id="pacman"></div>
<script src="board.js"></script>
<script src="agent.js"></script>
<script src="pacman.js"></script>
<script src="modernizr-1.5.min.js"></script>
<script>
var el = document.getElementById("pacman");
if (Modernizr.canvas && Modernizr.localstorage && Modernizr.audio && (Modernizr.audio.ogg || Modernizr.audio.mp3)) {
window.setTimeout(function () { PACMAN.init(el, "./"); }, 0);
} else {
el.innerHTML = "Sorry, needs a decent browser<br /><small>" + "(firefox 3.6+, Chrome 4+, Opera 10+ and Safari 4+)</small>";
}
</script>
<h4>Press 'N' then stand... back.</h4>
<p>Game code by: <a href="http://arandomurl.com/2010/07/25/html5-pacman.html">Dale Harvey</a></p>
<p>AI by: <a href="https://github.com/wamoyo/pacman-ai">Costa Michailidis</a></p>
<p>Thanks for the help!<br><a href="https://github.com/bruslim">Brian</a>, <a href="https://github.com/cowpig">Max</a>, <a href="https://github.com/thomasballinger">Tom</a>, <a href="https://github.com/maryrosecook">Mary</a>, <a href="https://github.com/kbeyer">Kyle</a>, <a href="http://github.com/smparker1201">Sarah</a></p>
<p>This game was inspired by the original Pac-Man™ game by: <a href="http://en.wikipedia.org/wiki/Pac-Man">Toru Iwatani</a> </p>
</body>
</html>