-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (56 loc) · 2.15 KB
/
index.html
File metadata and controls
56 lines (56 loc) · 2.15 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
56
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Battle Sim Prototype</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="controls">
<label>Orange Units: <input id="orangeCount" type="number" value="50" min="1" /></label>
<label>Yellow Units: <input id="yellowCount" type="number" value="50" min="1" /></label>
<label>Green Units: <input id="greenCount" type="number" value="50" min="1" /></label>
<label>Blue Units: <input id="blueCount" type="number" value="50" min="1" /></label>
<button id="startBtn">Start</button>
<button id="pauseBtn">Pause</button>
<button id="resetBtn">Reset</button>
<span id="stats"></span>
<span id="tickCount">Tick: 0</span>
<span id="tpsCount">TPS: 0</span>
<span id="bulletCount">Bullets: 0</span>
<span id="wreckCount">Wrecks: 0</span>
<span id="healthStats">Avg Health: 0.0</span>
<span id="thrustCount">Thrust: 0</span>
<span id="fireCount">Fire: 0</span>
<span id="idleCount">Idle: 0</span>
<span id="lootCount">Loot: 0</span>
<label>
Mode:
<select id="modeSelect">
<option value="toroidal">Toroidal</option>
<option value="euclidean" selected>Euclidean (walls)</option>
</select>
</label>
<span id="modeDisplay">Mode: Euclidean (walls)</span>
<div id="brainLegend" style="margin-top:4px;"></div>
<label style="margin-left:8px;">
Select Run:
<select id="runSelect" style="width:200px;"></select>
</label>
<div id="runMeta" style="display:none;">
<!-- run metadata hidden -->
</div>
<label style="margin-left:8px;">
Model Snapshot:
<select id="champSelect" style="width:200px;"></select>
<span id="champElo" style="margin-left:8px;">Fitness: N/A</span>
</label>
<div id="metadata-panel" style="display: none; margin-left:8px; border:1px solid #ccc; padding:8px; max-width:300px;">
<h3>Run Metadata</h3>
<div id="metadata-content">Select a champion to view metadata</div>
</div>
</div>
<canvas id="battleCanvas" width="800" height="600"></canvas>
<script type="module" src="script.js"></script>
</body>
</html>