MakeCode Arcade Advanced - 8x8 City Tilemap

Subscribers:
31,400
Published on ● Video Link: https://www.youtube.com/watch?v=RSDBnChJCnw



Duration: 57:10
553 views
7


Join Hassan and Vivian as we make a city tilemap with the 8x8 tileset! (sorry the audio is echo-y 😭. Hassan is fine, if you want to listen to his cooking journey!) 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);
}
}

Check out the code here: https://makecode.com/_3DgeTygDTY9g

The MakeCode Arcade Advanced stream happens weekdays at 1:00 PM PST on twitch.tv/msmakecode







Tags:
micro:bit
pxt
makecode