TMXTilesetInfo Class

Module: 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.

Index

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
Type string
Defined in cocos2d/tilemap/CCTMXXMLParser.js:172
firstGid

First grid

meta description
Type number
Defined in cocos2d/tilemap/CCTMXXMLParser.js:177
spacing

Spacing

meta description
Type number
Defined in cocos2d/tilemap/CCTMXXMLParser.js:182
margin

Margin

meta description
Type number
Defined in cocos2d/tilemap/CCTMXXMLParser.js:187
sourceImage

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

meta description
Type Any
Defined in cocos2d/tilemap/CCTMXXMLParser.js:192
imageSize

Size in pixels of the image

meta description
Type cc.Size
Defined in cocos2d/tilemap/CCTMXXMLParser.js:197

results matching ""

    No results matching ""