TileLayer

inherit qc.Node

Description

The tile layer of tile map. After setting tilemap, need to call Tilemap.generateLayers() to generate the tile layer.

Variables

Variable Name Type Description
tilemap qc.Tilemap tile map
layerIndex int The layer index of tile layer
scrollXRatio number Scroll ratio in axis x.
scrollYRatio number Scroll ratio in axis y.

Methods

Method Description
getTile Get tile information
getTileIndex Get tile index

Manual

Tilemap