set overworld 16
Problem it solves
You want to build a large adventure game with a 2D grid of 16x16 tilemaps so the player can explore different rooms and areas.
What this block does
Sets the 2D grid of 16x16 tilemaps that make up your game's overworld. You still need to load an initial map using loadMap to display it on screen.
The block
Block ID: overworld_setOverworld16
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| maps | tiles.TileMapData[][] | — | A 2D array (rows and columns) of 16x16 tilemaps. |
Example
let world = [
[tilemap`level1`, tilemap`level2`]
]
overworld.setOverworld16(world)
overworld.loadMap(0, 0)Add the extension
Add github:riknoll/arcade-overworld to your project, or open: Import arcade-overworld.