set overworld 8
Problem it solves
You are making a retro-style game using smaller 8x8 pixel tiles and want to arrange multiple tilemaps into an explorable grid.
What this block does
Sets the 2D grid of 8x8 tilemaps that make up your overworld. Use loadMap afterwards to start the game on a specific tilemap.
The block
Block ID: overworld_setOverworld8
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| maps | tiles.TileMapData[][] | — | A 2D array of 8x8 tilemaps arranged in rows and columns. |
Example
let world = [
[tilemap`level1`, tilemap`level2`]
]
overworld.setOverworld8(world)
overworld.loadMap(0, 0)Add the extension
Add github:riknoll/arcade-overworld to your project, or open: Import arcade-overworld.