create map 8
Problem it solves
You want to combine multiple rows of 8x8 tilemaps into a structured grid for an 8-bit style game.
What this block does
Combines multiple map rows of 8x8 tilemaps into a full 2D overworld grid array.
The block
Block ID: overworld_createMap8
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| row0 | tiles.TileMapData[] | — | First row of 8x8 tilemaps. |
| row1 | tiles.TileMapData[] | — | Second row of 8x8 tilemaps. |
| row2 | tiles.TileMapData[] | — | Third row of 8x8 tilemaps. |
| row3 | tiles.TileMapData[] | — | Optional fourth row of 8x8 tilemaps. |
| row4 | tiles.TileMapData[] | — | Optional fifth row of 8x8 tilemaps. |
| row5 | tiles.TileMapData[] | — | Optional sixth row of 8x8 tilemaps. |
Returns
tiles.TileMapData[][] — A 2D array of tilemaps ready for setOverworld8.
Example
let worldGrid = overworld.createMap8(
overworld.mapRow8(tilemap`level1`, tilemap`level2`)
)
overworld.setOverworld8(worldGrid)Add the extension
Add github:riknoll/arcade-overworld to your project, or open: Import arcade-overworld.