-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (48 loc) · 1.68 KB
/
Copy pathindex.html
File metadata and controls
55 lines (48 loc) · 1.68 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="data:,">
<title>Rollback Netcode Demo</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<header>
<h1><a href="https://github.com/someusername6/rollback-netcode">rollback-netcode</a> demo</h1>
</header>
<div class="controls">
<div class="control-group">
<label for="topology">Topology:</label>
<select id="topology">
<option value="star" selected>Star</option>
<option value="mesh">Mesh</option>
</select>
</div>
<div class="control-group">
<label for="authority">Desync Authority:</label>
<select id="authority">
<option value="host" selected>Host</option>
<option value="peer">Peer</option>
</select>
</div>
<div class="control-group">
<label for="latency">Simulated Latency:</label>
<select id="latency">
<option value="0" selected>None (0ms)</option>
<option value="16">LAN (16ms)</option>
<option value="50">Good (50ms)</option>
<option value="100">Average (100ms)</option>
<option value="150">Poor (150ms)</option>
<option value="250">Bad (250ms)</option>
</select>
</div>
<button id="add-player" class="btn-primary">Add Player</button>
</div>
<p class="hint">Click a canvas to select it, then use arrow keys to move.</p>
<div id="players-container" class="players-container"></div>
</div>
<script type="module" src="demo.js"></script>
</body>
</html>