-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·52 lines (49 loc) · 1.31 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
<!DOCTYPE html>
<html>
<head>
<script src="lib/crafty-min0.6.1.js"></script>
<script src="src/game.js"></script>
<script src="src/components.js"></script>
<script src="src/scenes.js"></script>
<script src="lib/jquery-1.11.2.min.js"></script>
<script>
window.addEventListener('load', Game.start);
</script>
<style type="text/css" media="screen">
body {
background: black;
text-align: center;
color: #DDD;
font-family: Arial;
}
.controls {
color: #BBB;
}
#cr-stage {
margin: 0px auto 0;
}
.bottom {
font-size: 12px;
color: #888;
margin-top: 50px;
}
.bottom a {
color: #AAA;
}
</style>
</head>
<body>
<!--<h2>P A C M A N V 0.4.2</h2>-->
<img src="assets/pac-man-logo1.jpg" alt="Pac" style="width:280px;height:55px">
<div>
<button id="start" onclick="Crafty.scene('Game')">Start/Reset</button>
<button id="clear-highscore" onclick="clearHighscore()">Clear Highscore</button>
<p id="highscoreID">Highscore: 0</p>
</div>
<div id="cr-stage"></div>
<div>
<p id="lives">Lives: 3</p>
<p id="scoreID">Score: 0</p>
</div>
</body>
</html>