-
Notifications
You must be signed in to change notification settings - Fork 4
/
player.html
115 lines (109 loc) · 2.47 KB
/
player.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
<link rel="stylesheet" media="all" href="/css/player.css">
<title>Bashing: <%= title %></title>
<script>
window.GameHost = { name: '<%= name %>' }
</script>
<style>
* {
margin:0;
padding:0;
}
html, body {
width:100%;
height:100%;
}
html {
}
body {
background:url(/img/bg_control.png);
background-size:100% 100%;
background-position:0 0;
padding-bottom:200px; /* hack to force bg */
}
#container {
height:100%;
}
#gamepad-container {
float:left;
height:100%;
width:60%;
display:block;
}
#gamepad {
width:180px;
height:180px;
background:url(/img/joystick_socket.png);
background-size:100% 100%;
margin-top:80px;
margin-left:20px;
}
#gamepad-button {
left:50px;
top:50px;
background:black;
position:absolute;
width:80px;
height:80px;
background:url(/img/joystick.png);
background-size:100% 100%;
}
#button-container {
float:left;
height:100%;
width:40%;
display:block;
display:none;
}
#debug {
background:black;
color:white;
font-family:"monospace";
bottom:0;
width:100%;
height:20px;
position:absolute;
}
#pinup {
width:183px;
height:193px;
background:url(/img/pinup.png) no-repeat;
position:absolute;
right:100px;
top:60px;
}
#action-button {
width:85px;
height:91px;
background:url(/img/button.png) no-repeat;
opacity:0.8;
position:absolute;
right:50px;
top:160px;
}
#action-button:hover,
#action-button:focus {
opacity:1;
}
</style>
</head>
<body>
<div id="player-information"></div>
<div id="gamepad-container">
<div id="gamepad"><div id="gamepad-button"></div></div>
</div>
<div id="button-container"></div>
<div id="pinup"></div>
<div id="action-button"></div>
<div id="debug"></div>
<script src="/socket.io/socket.io.js"></script>
<script src="/zappa/zappa.js"></script>
<script src="http://code.jquery.com/jquery-1.7.min.js"></script>
<script src="/play/js/socket.js"></script>
<script src="/js/gamepad/gamepad.js"></script>
</body>
</html>