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
propertiesArrayProperties of the map info.orientationNumberMap orientation.parentElementObjectParent element.parentGIDNumberParent GID.layerAttrsObjectLayer attributes.storingCharactersBooleanIs reading storing characters stream.currentStringStringCurrent string stored from characters stream.mapWidthNumberWidth of the mapmapHeightNumberHeight of the maptileWidthNumberWidth of a tiletileHeightNumberHeight of a tileATTRIB_NONENumberATTRIB_BASE64NumberATTRIB_GZIPNumberATTRIB_ZLIBNumber
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 |