TMXTilesetInfo 类型

模块: cc

cc.TMXTilesetInfo contains the information about the tilesets like:
- Tileset name
- Tileset spacing
- Tileset margin
- size of the tiles
- Image used for the tiles
- Image size
This information is obtained from the TMX file.

索引

属性(properties)
  • name string Tileset name
  • firstGid number First grid
  • spacing number Spacing
  • margin number Margin
  • sourceImage any Texture containing the tiles (should be sprite sheet / texture atlas)
  • imageSize cc.Size Size in pixels of the image

Details

属性(properties)

name

Tileset name

meta description
类型 string
定义于 cocos2d/tilemap/CCTMXXMLParser.js:172
firstGid

First grid

meta description
类型 number
定义于 cocos2d/tilemap/CCTMXXMLParser.js:177
spacing

Spacing

meta description
类型 number
定义于 cocos2d/tilemap/CCTMXXMLParser.js:182
margin

Margin

meta description
类型 number
定义于 cocos2d/tilemap/CCTMXXMLParser.js:187
sourceImage

Texture containing the tiles (should be sprite sheet / texture atlas)

meta description
类型 Any
定义于 cocos2d/tilemap/CCTMXXMLParser.js:192
imageSize

Size in pixels of the image

meta description
类型 cc.Size
定义于 cocos2d/tilemap/CCTMXXMLParser.js:197

条与 "" 相匹配的结果

    没有与 "" 匹配的结果