Added color scheme/better brain

This commit is contained in:
MaxRobinsonTheGreat
2020-08-21 16:07:04 -06:00
parent 0d2220827d
commit eaffd06133
15 changed files with 276 additions and 80 deletions

View File

@@ -15,8 +15,6 @@ class OrganismEditor extends Environment{
this.controller = new EditorController(this, this.renderer.canvas);
this.grid_map = new GridMap(15, 15, cell_size);
this.clear();
this.renderer.renderFullGrid(this.grid_map.grid);
}
update() {
@@ -72,7 +70,7 @@ class OrganismEditor extends Environment{
this.organism.updateGrid();
this.controller.updateDetails();
}
getCopyOfOrg() {
var new_org = new Organism(0, 0, null, this.organism);
return new_org;

View File

@@ -13,7 +13,6 @@ class WorldEnvironment extends Environment{
var grid_rows = Math.floor(this.renderer.height / cell_size);
var grid_cols = Math.floor(this.renderer.width / cell_size);
this.grid_map = new GridMap(grid_cols, grid_rows, cell_size);
this.renderer.renderFullGrid(this.grid_map.grid);
this.organisms = [];
this.walls = [];
this.total_mutability = 0;