TMXMapInfo
Class
Module: cc
cc.TMXMapInfo contains the information about the map like:
- Map orientation (hexagonal, isometric or orthogonal)
- Tile size
- Map size
And it also contains:
- Layers (an array of TMXLayerInfo objects)
- Tilesets (an array of TMXTilesetInfo objects)
- ObjectGroups (an array of TMXObjectGroupInfo objects)
This information is obtained from the TMX file.
Index
Properties
properties
Array
Properties of the map info.orientation
Number
Map orientation.parentElement
Object
Parent element.parentGID
Number
Parent GID.layerAttrs
Object
Layer attributes.storingCharacters
Boolean
Is reading storing characters stream.currentString
String
Current string stored from characters stream.mapWidth
Number
Width of the mapmapHeight
Number
Height of the maptileWidth
Number
Width of a tiletileHeight
Number
Height of a tileATTRIB_NONE
Number
ATTRIB_BASE64
Number
ATTRIB_GZIP
Number
ATTRIB_ZLIB
Number
Details
Properties
properties
Properties of the map info.
meta | description |
---|---|
Type | Array |
Defined in | cocos2d/tilemap/CCTMXXMLParser.js:334 |
orientation
Map orientation.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/tilemap/CCTMXXMLParser.js:339 |
parentElement
Parent element.
meta | description |
---|---|
Type | Object |
Defined in | cocos2d/tilemap/CCTMXXMLParser.js:344 |
parentGID
Parent GID.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/tilemap/CCTMXXMLParser.js:349 |
layerAttrs
Layer attributes.
meta | description |
---|---|
Type | Object |
Defined in | cocos2d/tilemap/CCTMXXMLParser.js:354 |
storingCharacters
Is reading storing characters stream.
meta | description |
---|---|
Type | Boolean |
Defined in | cocos2d/tilemap/CCTMXXMLParser.js:359 |
currentString
Current string stored from characters stream.
meta | description |
---|---|
Type | String |
Defined in | cocos2d/tilemap/CCTMXXMLParser.js:364 |
mapWidth
Width of the map
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/tilemap/CCTMXXMLParser.js:369 |
mapHeight
Height of the map
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/tilemap/CCTMXXMLParser.js:374 |
tileWidth
Width of a tile
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/tilemap/CCTMXXMLParser.js:379 |
tileHeight
Height of a tile
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/tilemap/CCTMXXMLParser.js:384 |
ATTRIB_NONE
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/tilemap/CCTMXXMLParser.js:1264 |
ATTRIB_BASE64
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/tilemap/CCTMXXMLParser.js:1272 |
ATTRIB_GZIP
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/tilemap/CCTMXXMLParser.js:1280 |
ATTRIB_ZLIB
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/tilemap/CCTMXXMLParser.js:1288 |