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

View file

@ -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);