Join @hassan and me as we make a city tilemap with the 8x8 tileset! Here’s the Javascript you need to copy and paste into a new “custom.ts” file to make a new 8x8 tilemap block:
yes there is! You can use that same bit of Javascript, but for the .tileWidth setting, change it from 8 to 32. And for clarity, you can rename the block to be blockId=tilemap_editor_thirtytwo and then block="set tilemap (32) to $tilemap"
Do tilemap tile sizes have to be powers of two (8, 16, 32…)? I think I saw some old posts from @jwunderl (like this one) that mentioned there are some optimizations that don’t support arbitrary sizes…
@Agent_14 right, 2 * 2 = 2 ^ 2 so it would be possible to make a tilemap of 4x4 tiles, though it’s untested / likely slow on hardware (I would suspect it to would work fine in most cases / you shouldn’t run into any weird wall handling cases. 2^1 might work just fine as well, but that would be bit iffy with wall hitting / bumping as there are some cases we try to handle clipping with 1 or 2 pixel adjustments).
@omnisImperiumpowers of {n} is typically defined to be the set of results of all expressions n^i where i is an integer and i >= 0 - you’re right that you can always put another expression / non integer as the exponent, but you wouldn’t typically call the result a power of the base unless it were a nonnegative integer.
In this case that is true as well, as the technical reason for it is that we use bit shifting for faster calculations for hardware, which is only defined for integers / anything after the decimal will get truncated during the operations so you wouldn’t be able to meaningfully use a scale of 2.5 / it would probably behave exactly the same as a scale of 2, with potentially a few bugs due if there are some expressions that don’t implicitly change it to be an int.