What do you mean by “expand by variable”.
Also, HEX is short for Hexadecimal, a numbering system with digits from 0 - 9 and A - F (10 - 15), sixteen digits in total, hence the hex.
In web development, (and pretty much everywhere else) hex numbers tend to be utilized for the purpose of storing color. That’s because color is stored in the RGB format (red, green and blue) where every color is a value between 0 - 255. (256 total). Since 256 combinations can be represented by 2 hex bytes (for example - 2F would represent 47 in the decimal system).
Adding three of these bytes would give you a format such as xx (red) xx (green) xx (blue) like you denoted. So, while it can be used for storing colors with 6 hex digits, you can have as many as you want, letting you store data more efficiently.
In Arcade, it’s common use since a color can be represented using a single hex digit (because there are 16 colors). I hope this clears that up
Resize tilemap is neither supported with block, nor with codes.
So I suggest, prepare a tilemap big enough at beginning, and set tiles and walls in it at runtime.
Or with code, create a new tilemap(TilemapData object actually), just like codes in tilemap.g.ts.
The first parameter (hexxxxxxxxx), is a buffer object, which first 2 byte is width, following 2bytes is height, and all rest bytes are the index of tiles image in the array of tile set(the 3rd parameter). For example: