booa
This commit is contained in:
parent
79a0c29f84
commit
e2d2dfcb66
7 changed files with 2610 additions and 1271 deletions
4
boot.js
4
boot.js
|
|
@ -45,12 +45,12 @@ scheduleLoop();
|
|||
}
|
||||
function reset() {
|
||||
const size = Number(els.worldSize.value);
|
||||
const count = Number(els.agentCount.value);
|
||||
const initialPopulation = Number(els.agentCount.value);
|
||||
els.canvas.width = size;
|
||||
els.canvas.height = size;
|
||||
renderImage = null;
|
||||
renderImageSize = 0;
|
||||
sim = new Simulation(size, count);
|
||||
sim = new Simulation(size, initialPopulation);
|
||||
setLegend();
|
||||
drawFrame(true);
|
||||
renderStateGraph();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue