World
World is the main scene. It manages maps and layers.
addMap(name string, width int, height int, tileWidth int, tileHeight int)
It adds a new map to the world.
addLayer(mapName string, name string, z float32)
It adds a new layer to the map at the specified z-depth.
addLayerData(mapName string, layerName string, data [][]int)
It adds a new layer data to the map.
setBackground(color string)
It sets the background color. Defaults to #000000
. It only accepts hexadecimal color values.
setTile(mapName string, layerName string, x int, y int, tile int)
It sets the tile at the specified position.