This commit is contained in:
Richard Knoll 2021-09-09 14:45:01 -07:00
Родитель 66c265bdfe
Коммит 316ba8de9c
1 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -118,6 +118,22 @@ namespace tiles {
return new WorldMap(tilemap);
}
/**
* Creates a tilemap that can be connected to other tilemaps through the overworld.
*/
//% blockId=create_small_overworld_map
//% block="8x8 tilemap $tilemap"
//% tilemap.fieldEditor="tilemap"
//% tilemap.fieldOptions.decompileArgumentAsString="true"
//% tilemap.fieldOptions.filter="tile"
//% tilemap.fieldOptions.taggedTemplate="tilemap"
//% tilemap.fieldOptions.tileWidth=8
//% group="Creation" weight=49 blockGap=8
//% duplicateShadowOnDrag
export function createSmallMap(tilemap: tiles.TileMapData): WorldMap {
return createMap(tilemap);
}
/**
* Copy an existing tilemap but without the connections.
*/