Add an 8x8 tilemap option
This commit is contained in:
Родитель
66c265bdfe
Коммит
316ba8de9c
16
overworld.ts
16
overworld.ts
|
@ -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.
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче