TMXMapInfo
类型
模块: 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.
索引
属性(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 |
---|---|
类型 | Array |
定义于 | cocos2d/tilemap/CCTMXXMLParser.js:334 |
orientation
Map orientation.
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/tilemap/CCTMXXMLParser.js:339 |
parentElement
Parent element.
meta | description |
---|---|
类型 | Object |
定义于 | cocos2d/tilemap/CCTMXXMLParser.js:344 |
parentGID
Parent GID.
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/tilemap/CCTMXXMLParser.js:349 |
layerAttrs
Layer attributes.
meta | description |
---|---|
类型 | Object |
定义于 | cocos2d/tilemap/CCTMXXMLParser.js:354 |
storingCharacters
Is reading storing characters stream.
meta | description |
---|---|
类型 | Boolean |
定义于 | cocos2d/tilemap/CCTMXXMLParser.js:359 |
currentString
Current string stored from characters stream.
meta | description |
---|---|
类型 | String |
定义于 | cocos2d/tilemap/CCTMXXMLParser.js:364 |
mapWidth
Width of the map
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/tilemap/CCTMXXMLParser.js:369 |
mapHeight
Height of the map
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/tilemap/CCTMXXMLParser.js:374 |
tileWidth
Width of a tile
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/tilemap/CCTMXXMLParser.js:379 |
tileHeight
Height of a tile
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/tilemap/CCTMXXMLParser.js:384 |
ATTRIB_NONE
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/tilemap/CCTMXXMLParser.js:1264 |
ATTRIB_BASE64
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/tilemap/CCTMXXMLParser.js:1272 |
ATTRIB_GZIP
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/tilemap/CCTMXXMLParser.js:1280 |
ATTRIB_ZLIB
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/tilemap/CCTMXXMLParser.js:1288 |