-
Notifications
You must be signed in to change notification settings - Fork 0
/
canvas.html
executable file
·78 lines (51 loc) · 1.2 KB
/
canvas.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
72
73
74
75
76
77
78
<html>
<head>
<script src="js/jquery.x.min.js"></script>
<script src="js/appconfig.js"></script>
<script src="js/peeerest.js"></script>
<script src="js/peeews.js"></script>
<script src="js/canvas.js"></script>
<script>
$( document ).ready(function() {
PCanvas.init();
PeeeWS.init(PCanvas);
window.setInterval(function() {
PCanvas.GameLoop();
}, 15);
});
</script>
</head>
<body style="font-family:sans;font-size:24px;font-weight:bold;">
<p align="center">
<img src="img/logo.png" />
</p>
<style>
Canvas{
display: block;
margin: 0 auto;
}
</style>
<div>
<canvas id="myCanvas" align="center" width="1300" height="600" style="border:1px solid #000000;position: absolute; z-index: 1;top:100px;left:60px;margin: 0 auto;">
</canvas>
</div>
<table style='width:1300px;position:absolute;top:710px;left:10px;'>
<tr>
<td align="center" style="font-size:24pt;">
Player 1
</td>
<td align="center" style="font-size:24pt;">
Player 2
</td>
</tr>
<tr>
<td align="center" id="p1score" style="font-size:38pt;">
0
</td>
<td align="center" id="p2score" style="font-size:38pt;">
0
</td>
</tr>
</table>
</body>
</html>