forked from ramr/pacman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·46 lines (44 loc) · 1002 Bytes
/
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
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script id='socketio'></script>
<script>
$('#socketio').attr('src', location.protocol+"//"+location.host+"/socket.io/socket.io.js")
$(window).load(function(){
//your code here
$('#game').attr('src', location.protocol+"//"+location.host+"/game.js");
});
</script>
<audio autoplay='autoplay' loop='loop'><source src='pacman.wav' /></audio>
<canvas id='board' width='1032' height='500' ></canvas>
<script id='game'></script>
<style>
#debugmsg {
display: none;
position: absolute;
left: 100px;
top: 50px;
z-index: 100;
font-size: 10pt;
color: blue;
}
#message {
display: none;
position: absolute;
left: 100px;
top: 50px;
z-index: 100;
font-size: 73pt;
color: red;
}
#full {
display: none;
z-index: 100;
position: absolute;
left: 100px;
top: 100px;
font-size: 72px;
color: red;
}
</style>
<div id='debugmsg'></div>
<div id='message'></div>
<div id='full'></div>