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:
namespace custom {
//% blockId=tilemap_editor_eight block=“set tilemap (8) to $tilemap”
//% weight=200 blockGap=8
//% tilemap.fieldEditor=“tilemap”
//% tilemap.fieldOptions.decompileArgumentAsString=“true”
//% tilemap.fieldOptions.filter=“tile”
//% tilemap.fieldOptions.tileWidth=8
//% tilemap.fieldOptions.taggedTemplate=“tilemap”
//% blockNamespace=“scene” group=“Tiles” duplicateShadowOnDrag
//% help=tiles/set-tile-map
export function setTilemap(tilemap: tiles.TileMapData) {
scene.setTileMapLevel(tilemap);
}
}
Watch the full stream here. Sorry the audio is echo-y . Hassan is fine, if you want to listen to his cooking journey!: https://youtu.be/RSDBnChJCnw
Check out the code below:
The MakeCode Arcade Advanced stream happens weekdays at 1:00 PM PST on twitch.tv/msmakecode