boolean parameter writeDirectionToTiles