diff --git a/js/world.mjs b/js/world.mjs index 95349f3..fd7b180 100644 --- a/js/world.mjs +++ b/js/world.mjs @@ -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);