-
Notifications
You must be signed in to change notification settings - Fork 1
/
start.html
283 lines (252 loc) · 12.4 KB
/
start.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<html lang="en">
<head>
<title>xbe.at 1.0.1</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" type="text/css" media="screen,print" href="css/skill.css" />
<link rel="stylesheet" type="text/css" media="screen,print" href="css/userInterface.css" />
<link rel="stylesheet" type="text/css" media="screen,print" href="css/sidemenu.css" />
<link rel="stylesheet" type="text/css" media="screen,print" href="css/scoreboard.css">
<link rel="stylesheet" type="text/css" media="screen,print" href="css/AI.css">
<style type="text/css">
body {
background-color: #000;
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}
</style>
</head>
<body>
<div class="xbeat-logo-wrapper">
<img class="xbeat-logo-up" src="../img/LogoXbeatLinear.svg" title="logo">
</div>
<!-- Sidebar Menu -->
<div class="nav-toggle hamburger">
<span></span>
<span></span>
<span></span>
</div>
<div class="menu-container">
<nav>
<div id="stopRaf" class="sideMenuButtonContainer">
<a onClick="scene3D.restartGame()" class="btn"><button class="sideMenuButton"><p class="sideMenuElement">Restart Game</p></button></a>
</div>
<!-- Time Control -->
<div class="sideMenuButtonContainer">
<a class="btn"><button onClick="scoreboardTimer.start()" class="sideMenuButton"><p class="sideMenuElement">Start Game</p></button></a>
</div>
<div class="sideMenuButtonContainer">
<a class="btn"><button onClick="scoreboardTimer.stop()" class="sideMenuButton"><p class="sideMenuElement">Stop Game</p></button></a>
</div>
<div class="sideMenuButtonContainer">
<a class="btn"><button onClick="scoreboardTimer.reset()" class="sideMenuButton"><p class="sideMenuElement">Pause Game</p></button></a>
</div>
<!-- --- AI Settings --- -->
<div class="AI-settings">
<form class="formParams">
<div class="switch-field">
<div class="switch-title">Show IDs</div>
<input type="radio" id="switch_ids_on" onclick = "Prm.bIDs = true" name="switch_ids" value="on" />
<label for="switch_ids_on">On</label>
<input type="radio" id="switch_ids_off" onclick = "Prm.bIDs = false" name="switch_ids" value="off" checked/>
<label for="switch_ids_off">Off</label>
</div>
<div class="switch-field">
<div class="switch-title">Show States</div>
<input type="radio" id="switch_states_on" onclick = "Prm.bStates = true" name="switch_states" value="on" />
<label for="switch_states_on">On</label>
<input type="radio" id="switch_states_off" onclick = "Prm.bStates = false" name="switch_states" value="off" checked/>
<label for="switch_states_off">Off</label>
</div>
<div class="switch-field">
<div class="switch-title">Show Regions</div>
<input type="radio" id="switch_regions_on" onclick = "Prm.bRegions = true" name="switch_regions" value="on" />
<label for="switch_regions_on">On</label>
<input type="radio" id="switch_regions_off" onclick = "Prm.bRegions = false" name="switch_regions" value="off" checked/>
<label for="switch_regions_off">Off</label>
</div>
<div class="switch-field">
<div class="switch-title">Show Support Spots</div>
<input type="radio" id="switch_support_on" onclick = "Prm.bSupportSpots = true" name="switch_support" value="on" />
<label for="switch_support_on">On</label>
<input type="radio" id="switch_support_off" onclick = "Prm.bSupportSpots = false" name="switch_support" value="off" checked/>
<label for="switch_support_off">Off</label>
</div>
<div class="switch-field">
<div class="switch-title">Show Targets</div>
<input type="radio" id="switch_targets_on" onclick = "Prm.bViewTargets = true" name="switch_targets" value="on" />
<label for="switch_targets_on">On</label>
<input type="radio" id="switch_targets_off" onclick = "Prm.bViewTargets = false" name="switch_targets" value="off" checked/>
<label for="switch_targets_off">Off</label>
</div>
<div class="switch-field">
<div class="switch-title">Highlight if Threatened</div>
<input type="radio" id="switch_threatened_on" onclick = "Prm.bHighlightIfThreatened = true" name="switch_threatened" value="on" />
<label for="switch_threatened_on">On</label>
<input type="radio" id="switch_threatened_off" onclick = "Prm.bHighlightIfThreatened = false" name="switch_threatened" value="off" checked/>
<label for="switch_threatened_off">Off</label>
</div>
<div class="switch-field">
<div class="switch-title">Non Penetration Constraint</div>
<input type="radio" id="switch_penetration_on" onclick = "Prm.bNonPenetrationConstraint = true" name="switch_penetration" value="on" />
<label for="switch_penetration_on">On</label>
<input type="radio" id="switch_penetrattion_off" onclick = "Prm.bNonPenetrationConstraint = false" name="switch_penetration" value="off" checked/>
<label for="switch_penetrattion_off">Off</label>
</div>
</form>
<form class="formLogs">
<!--
<div class="switch-field">
<div class="switch-title">Log Team State</div>
<input type="radio" id="switch_teamstate_on" onclick = "SHOW_TEAM_STATE = true" name="switch_teamstate" value="on" />
<label for="switch_teamstate_on">On</label>
<input type="radio" id="switch_teamstate_off" onclick = "SHOW_TEAM_STATE = false" name="switch_teamstate" value="off" checked/>
<label for="switch_teamstate_off">Off</label>
</div>
-->
<div class="switch-field">
<div class="switch-title">Log Supporting Players Target</div>
<input type="radio" id="switch_supporting_on" onclick = "SHOW_SUPPORTING_PLAYERS_TARGET = true" name="switch_supporting" value="on" />
<label for="switch_supporting_on">On</label>
<input type="radio" id="switch_supporting_off" onclick = "SHOW_SUPPORTING_PLAYERS_TARGET = false" name="switch_supporting" value="off" checked/>
<label for="switch_supporting_off">Off</label>
</div>
<div class="switch-field">
<div class="switch-title">Log Messaging Info</div>
<input type="radio" id="switch_messaging_on" onclick = "SHOW_MESSAGING_INFO = true" name="switch_messaging" value="on" />
<label for="switch_messaging_on">On</label>
<input type="radio" id="switch_messaging_off" onclick = "SHOW_MESSAGING_INFO = false" name="switch_messaging" value="off" checked/>
<label for="switch_messaging_off">Off</label>
</div>
<div class="switch-field">
<div class="switch-title">Log Debug Team State</div>
<input type="radio" id="switch_debugteam_on" onclick = "DEBUG_TEAM_STATES = true" name="switch_debugteam" value="on" />
<label for="switch_debugteam_on">On</label>
<input type="radio" id="switch_debugteam_off" onclick = "DEBUG_TEAM_STATES = false" name="switch_debugteam" value="off" checked/>
<label for="switch_debugteam_off">Off</label>
</div>
<div class="switch-field">
<div class="switch-title">Log Goaly State</div>
<input type="radio" id="switch_goaly_on" onclick = "GOALY_STATE_INFO_ON = true" name="switch_goaly" value="on" />
<label for="switch_goaly_on">On</label>
<input type="radio" id="switch_goaly_off" onclick = "GOALY_STATE_INFO_ON = false" name="switch_goaly" value="off" checked/>
<label for="switch_goaly_off">Off</label>
</div>
<div class="switch-field">
<div class="switch-title">Log Player State</div>
<input type="radio" id="switch_player_on" onclick = "PLAYER_STATE_INFO_ON = true" name="switch_player" value="on" />
<label for="switch_player_on">On</label>
<input type="radio" id="switch_player_off" onclick = "PLAYER_STATE_INFO_ON = false" name="switch_player" value="off" checked/>
<label for="switch_player_off">Off</label>
</div>
</form>
</div>
<div style="height: 100px;"></div>
</nav>
</div>
<!-- ------------- -->
<!-- Scoreboard Timer -->
<div id="scoreboardTimer" class="scoreboardTimer">
<div class="timer">
<span class="minute">00</span>:<span class="second">00</span>
</div>
<div class="teamAContainer">
<div class="nameTeamA">RED</div>
<div class="colorTeamA">
<div class="colorTeamAbar1"></div>
<div class="colorTeamAbar2"></div>
</div>
</div>
<div id="scoreTeamA">0</div>
<div id="scoreTeamB">0</div>
<div class="teamBContainer">
<div class="nameTeamB">BLUE</div>
<div class="colorTeamB">
<div class="colorTeamBbar1"></div>
<div class="colorTeamBbar2"></div>
</div>
</div>
</div>
<!-- ------------- -->
<!-- Skill Change Value -->
<div id="skill-change-value-container">
<div id="qty-subtract" class="skill-change-value">
<a class="btn">-</a>
</div>
<div id="qty-addition" class="skill-change-value">
<a class="btn">+</a>
</div>
</div>
<!-- ------------- -->
<!-- Skill -->
<div id="skill" class="skill">
<div id="cross-close" class="cross-close">←</div>
<div class="skill-wrap lost">
<div class="skill-value">
<p id="SK0">0.00</p><div class="letter-holder">Off-side</div>
</div>
</div>
<div class="skill-wrap lost">
<div class="skill-value">
<p id="SK1">0.00</p><div class="letter-holder">Pressing</div>
</div>
</div>
<div class="skill-wrap lost">
<div class="skill-value">
<p id="SK2">0.00</p><div class="letter-holder">Aggressive defense</div>
</div>
</div>
<div class="skill-wrap gain">
<div class="skill-value">
<p id="SK3">0.00</p><div class="letter-holder">Clearance</div>
</div>
</div>
<div class="skill-wrap lost">
<div class="skill-value">
<p id="SK4">0.00</p><div class="letter-holder">Defensive possesion</div>
</div>
</div>
<div class="skill-wrap gain">
<div class="skill-value">
<p id="SK5">0.00</p><div class="letter-holder">Wing play</div>
</div>
</div>
<div class="skill-wrap gain">
<div class="skill-value">
<p id="SK6">0.00</p><div class="letter-holder">Through ball</div>
</div>
</div>
<div class="skill-wrap gain">
<div class="skill-value">
<p id="SK7">0.00</p><div class="letter-holder">Give-and-go offense</div>
</div>
</div>
<div class="skill-wrap lost">
<div class="skill-value">
<p id="SK8">0.00</p><div class="letter-holder">Direct football</div>
</div>
</div>
</div>
</body>
<script>
"use strict";
document.querySelector( '.nav-toggle' ).addEventListener( "click", function( e ){
e.currentTarget.classList.toggle( 'open' );
document.querySelector('.menu-container').classList.toggle('nav-open');
});
</script>
<script type="text/javascript" src="js/three.js"></script>
<script type="text/javascript" src="js/OrbitControls.js"></script>
<script type="text/javascript" src="js/Scene3D.js"></script>
<script type="text/javascript" src="js/AI/SoccerPitch.js"></script>
<script type="text/javascript" src="js/AI/C2DMatrix.js"></script>
<script type="text/javascript" src="js/AI/PrecisionTimer.js"></script>
<script type="text/javascript" src="js/AI/Cgdi.js"></script>
<script type="text/javascript" src="js/skill.js"></script>
<script type="text/javascript" src="js/ScoreboardTimer.js"></script>
<script type="text/javascript" src="js/gameClient.js"></script>
</html>