xxxxxxxxxx
let civilisations;
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
civilisations = [new Civilisation(width/4, height/4, color(255, 0, 0)), new Civilisation(width*3/4, height/4, color(0, 255, 0)), new Civilisation(width/4, height*3/4, color(0, 255, 255)), new Civilisation(width*3/4, height*3/4, color(255, 255, 0)), new Civilisation(width/2, height/2, color(255))];
}
function draw() {
background(0);
civilisations.forEach(d => d.reproducePopulation());
civilisations.forEach(d => d.die());
civilisations.forEach(d => d.display());
}