-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (64 loc) · 2.27 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
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Network Movement Demo</title>
</head>
<body>
<div style="border: 5px solid blue; padding: 5px; display: inline-block; vertical-align: top">
<canvas id="canvas1" width="600" height="500"></canvas>
<p>
<b>Client 1</b>
- move with A/D keys, press space to jump
<br>
Lag =
<input type="text" id="client1_lag", size="5" value="150">
ms · Fps =
<input type="text" id="client1_fps", size="5" value="60">
·
<input type="checkbox" id="client1_connect">
Connect
<br>
LagVariance =
<input type="text" id="client1_lagVariance", size="5" value="0">
ms · Loss =
<input type="text" id="client1_loss", size="5" value="0">
</p>
</div>
<div style="border: 5px solid grey; padding: 5px; display: inline-block; vertical-align: top">
<canvas id="canvas2" width="600" height="500"></canvas>
<p>
<b>Server</b>
<br>
Fps =
<input type="text" id="server_fps", size="5" value="30">
·
<input type="checkbox" id="server_sync" disabled checked>
Always Sync
</p>
</div>
<div style="border: 5px solid red; padding: 5px; display: inline-block; vertical-align: top">
<canvas id="canvas3" width="600" height="500"></canvas>
<p>
<b>Client 2</b>
- move with ↑/←/↓/→ keys
<br>
Lag =
<input type="text" id="client2_lag", size="5" value="5">
ms · Fps =
<input type="text" id="client2_fps", size="5" value="60">
·
<input type="checkbox" id="client2_connect">
Connect
<br>
LagVariance =
<input type="text" id="client2_lagVariance", size="5" value="0">
ms · Loss =
<input type="text" id="client2_loss", size="5" value="0">
</p>
</div>
</body>
<script src="public/bundle.js"></script>
</html>