create map 16
Problem it solves
You want to visually build a 2D overworld grid using rows of 16x16 tilemaps in block mode.
What this block does
Combines multiple map rows of 16x16 tilemaps into a full 2D overworld grid array.
The block
Block ID: overworld_createMap16
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| row0 | tiles.TileMapData[] | — | First row of tilemaps. |
| row1 | tiles.TileMapData[] | — | Second row of tilemaps. |
| row2 | tiles.TileMapData[] | — | Third row of tilemaps. |
| row3 | tiles.TileMapData[] | — | Optional fourth row of tilemaps. |
| row4 | tiles.TileMapData[] | — | Optional fifth row of tilemaps. |
| row5 | tiles.TileMapData[] | — | Optional sixth row of tilemaps. |
Returns
tiles.TileMapData[][] — A 2D array of tilemaps ready for setOverworld16.
Example
let worldGrid = overworld.createMap16(
overworld.mapRow16(tilemap`level1`, tilemap`level2`),
overworld.mapRow16(tilemap`level3`, tilemap`level4`)
)
overworld.setOverworld16(worldGrid)Add the extension
Add github:riknoll/arcade-overworld to your project, or open: Import arcade-overworld.