The maximum size of the Tileset should be specified by data-bit-depth, which determines how Maps are processed. For example, with data-bit-depth="6" each Map will be broken into 6-bit integers. (Right now integers are 8-bit). Support for bit-depths up to 32 is provided by JavaScript Typed Arrays, and so is a reasonable upper-limit.
A lightweight implementation of this would simply use
Note, however, that this is not memory-efficient for non-power-of-2 bit-depths. A base converter shouldn't be too difficult to program for increased efficiency.
The maximum size of the Tileset should be specified by
data-bit-depth
, which determines how Maps are processed. For example, withdata-bit-depth="6"
each Map will be broken into 6-bit integers. (Right now integers are 8-bit). Support for bit-depths up to 32 is provided by JavaScript Typed Arrays, and so is a reasonable upper-limit.A lightweight implementation of this would simply use
Note, however, that this is not memory-efficient for non-power-of-2 bit-depths. A base converter shouldn't be too difficult to program for increased efficiency.