-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsimulation.html
45 lines (42 loc) · 2.42 KB
/
simulation.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
<html>
<head>
<!-- Graphs -->
<link rel="stylesheet" href="style.css">
</head>
<body style="margin: 0">
<div id="simulationContainer">
<div id="frameCounter">
Frame<input type="number" id="frame" style="width:50px" value="0" readonly /><br/>
</div>
<div align="center" id="graphs" style="display:none;">
<div id="graphAnts"></div>
<div id="graphStats"></div>
</div>
<div id="canvasContainer">
<canvas align="center" width="600" height="350" class="terrarium" id="canvasSimulation"></canvas>
</div>
<div id="settings">Settings<br/>
FPS<input type="number" id="fps" style="width:50px" value="30" max="60" min="1" onchange="SettingsGlobal.setFramesPerSecond(document.getElementById('fps').value);" /><br/>
<div id="debugContainer">Debug stuff<br>
<input type="checkbox" id="debugShowLife" onchange="Debug.setShowLife(document.getElementById('debugShowLife').checked);" /> Show life <br/>
<input type="checkbox" id="debugVisibility" onchange="Debug.setVisibility(document.getElementById('debugVisibility').checked);" /> Show visibility <br/>
<input type="checkbox" id="debugCollider" onchange="Debug.setShowCollider(document.getElementById('debugCollider').checked);" /> Show collider <br/>
<input type="checkbox" id="debugFoodAmount" onchange="Debug.setShowFoodAmount(document.getElementById('debugFoodAmount').checked);" /> Show food amount <br/>
<input type="checkbox" id="debugSmellingDistance" onchange="Debug.setShowSmellingDistance(document.getElementById('debugSmellingDistance').checked);" /> Show smelling distance <br/>
<input type="checkbox" id="debugSmelledObjectsPosition" onchange="Debug.setShowSmelledObjectsPosition(document.getElementById('debugSmelledObjectsPosition').checked);" /> Show smelled object distance <br/>
<input type="checkbox" id="debugPheromones" onchange="Debug.setShowPheromones(document.getElementById('debugPheromones').checked);" /> Show pheromones <br/>
</div>
</div>
<!-- no ui -->
<div id="NoUI" style="display:none;">...Simulating...</div>
</div>
<script src="./js/external/flotr2/flotr2.min.js"></script>
<script src="./js/settingsGlobal.js"></script>
<script src="./exampleAnts/simpleAnt.js"></script>
<!-- undependant -->
<script src="./js/debug.js"></script>
<script src="./js/globals.js"></script>
<script src="./js/external/require.js"></script>
<script src="./js/initSimulation.js"></script>
</body>
</html>