local json = require"common.dkjson" local CHUNK_SIZE = 128 -- for now tiles shall be booleans local function index_ok(offq,offr) return 0<=offq and 0<=offr and offq