fix unnoticeable bug in world creation code.
This commit is contained in:
parent
7299916fa7
commit
229e7471ef
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ export const CENTER = Math.floor(BOX_SIZE / 2);
|
||||||
|
|
||||||
function create_world (size) {
|
function create_world (size) {
|
||||||
return {
|
return {
|
||||||
tiles: Array(BOX_SIZE).fill(0).map(_ => Array(BOX_SIZE).fill(0)),
|
tiles: Array(size).fill(0).map(_ => Array(size).fill(0)),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const world = create_world(BOX_SIZE);
|
const world = create_world(BOX_SIZE);
|
||||||
|
|
Loading…
Reference in a new issue