require("client.utils") world = {} world.tiles = {} world.entities = {} world.entities.com = {} world.entities.players = {} world.utils = {} world.cell_size = 10 -- default function world.utils.to_tile(x, y) return vec(utils.round(x / world.cell_size) * world.cell_size, utils.round(y / world.cell_size) * world.cell_size) end function world.utils.set_tile(x, y, tbl) local key = x .. "," .. y world.tiles[key] = tbl end function world.utils.get_tile(x, y) local key = x .. "," .. y return world.tiles[key] end