Class cc.TMXLayerInfo

Class Summary
Constructor Attributes Constructor Name and Description
 

cc.TMXLayerInfo contains the information about the layers like:
- Layer name
- Layer size
- Layer opacity at creation time (it can be modified at runtime)
- Whether the layer is visible (if it's not visible, then the CocosNode won't be created)

This information is obtained from the TMX file.

Method Summary

Class Detail

cc.TMXLayerInfo()

cc.TMXLayerInfo contains the information about the layers like:
- Layer name
- Layer size
- Layer opacity at creation time (it can be modified at runtime)
- Whether the layer is visible (if it's not visible, then the CocosNode won't be created)

This information is obtained from the TMX file.

Field Detail

<static> <constant> {Number} cc.TMXLayerInfo.ATTRIB_BASE64
<static> <constant> {Number} cc.TMXLayerInfo.ATTRIB_GZIP
<static> <constant> {Number} cc.TMXLayerInfo.ATTRIB_NONE
<static> <constant> {Number} cc.TMXLayerInfo.ATTRIB_ZLIB
{Array} properties
- Properties of the layer info.

Method Detail

  • {Array} getProperties()
    Gets the Properties.
    Returns:
    {Array}
  • setProperties(value)
    Set the Properties.
    Parameters:
    {object} value