Added various control panel options

This commit is contained in:
MaxRobinsonTheGreat
2020-07-09 20:32:25 -06:00
parent c6b0a5bafc
commit 949d46e7c4
10 changed files with 196 additions and 58 deletions

34
dist/bundle.js vendored

File diff suppressed because one or more lines are too long

18
dist/css/style.css vendored
View File

@@ -32,18 +32,32 @@ canvas {
padding: 5px;
border: 10px;
border-color: black;
grid-row: 1;
height: 100%;
background-color: lightgray;
/* height: 100%; */
}
#speed-controller {
grid-column: 1;
grid-row: 1;
/* background-color: blue; */
}
#stats {
grid-column: 1;
grid-row: 2;
/* background-color: blue; */
}
#hyperparameters {
grid-column: 2;
grid-row: 1 / 2;
/* background-color: green; */
}
#powers {
grid-column: 3;
grid-row: 1 / 2;
/* background-color: yellow; */
}

15
dist/html/index.html vendored
View File

@@ -17,10 +17,25 @@
<h2>Simulation Speed</h2>
<input id="slider" type="range" min="1" max="300" value="60">
<button id='pause-button'>Pause</button>
<p id='fps'>Target FPS: 60</p>
<p id='fps-actual'></p>
</div>
<div id='stats' class='control-set'>
<h2>Stats</h2>
<p id='org-count'>Organism count: </p>
<p id='org-record'>Highest count: </p>
</div>
<div id='hyperparameters' class='control-set'>
<h2>Hyperparameters</h2>
<label for="food-prod-prob">Probability of producing food:</label>
<input type="number" id="food-prod-prob" min=".001" max="100" value=1 step="1">
<label for="lifespan-multiplier">Lifespan multiplier:</label>
<input type="number" id="lifespan-multiplier" min="1" max="10000" value=100 step="1">
<br/>
<label for="fixed-ratio">Use fixed ratio</label>
<input type="checkbox" id="fixed-ratio" name="scales" checked>
</div>
<div id='powers' class='control-set'>