fix unnoticeable bug in world creation code.

This commit is contained in:
HyperOnion 2023-06-24 17:35:27 +02:00
parent 7299916fa7
commit 229e7471ef
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ export const CENTER = Math.floor(BOX_SIZE / 2);
function create_world (size) {
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);