world config + improved wall clearing

This commit is contained in:
MaxRobinsonTheGreat
2021-12-18 11:53:30 -06:00
parent fe2d6aae7c
commit c319ed9dc5
7 changed files with 24 additions and 16 deletions

View File

@@ -21,9 +21,10 @@ class GridMap {
}
}
fillGrid(state) {
fillGrid(state, ignore_walls=false) {
for (var col of this.grid) {
for (var cell of col) {
if (ignore_walls && cell.state===CellStates.wall) continue;
cell.setType(state);
cell.owner = null;
cell.cell_owner = null;