local CHUNK_SIZE = 128 -- for now tiles shall be booleans local function index(offq,offr) -- indexes start at 0 -- and go up to (CHUNK_SIZE^2)-1 assert(0<=offq and 0<=offr and offq