when you select the tilemap editor, default is 10x8 and if you click the tilemap size button, it goes to 16x16 nad 16x32 etc but not ever to 20x15
how can i get 20x15 (which would correspond to 160x120 in 8x8 tiles)
here’s the code in question https://makecode.com/_MjCR6vRmb40t
Currently, the tile map is pretty hard coded for 16x16 tiles for performance reasons - a lot of the calculations are made significantly quicker by bit shifting / etc.
That said, 8x8 would also work for perf as it’s still a power of 2, and most of the values are already generalized pretty okay to support switching the size (though I’m not sure on how we’d have blocks to support that without things getting wonky - maybe just an optional parameter that lists out 8x8, 16x16, 32x32). Will take a look at this to see what we can do
(partially there https://github.com/microsoft/pxt-common-packages/pull/855)
saweeet - i found another oddity to test tile colisions. - will make new thread
@ladyada 8x8 tiles are now in beta, just change the size with the optional on
set tile map to:
The image editor default sizes for those blocks should include the proper sizes for 8x8 - for tiles and a couple tile map sizes (20x15 and 40x15), they’ll just be at the ‘end’ of the list.
Hey, I was trying to make a game with this block, but I can’t seem to find it anymore.
This uses the old style tilemap, you can see add them back in with this extension:
Richard also wrote a quick extension to handle small tilemaps with new blocks: https://github.com/riknoll/small-tilemaps
Thank you so much!!! Creating a github resp so you can see it live!