Class Index | File Index

Classes


Class cc.TMXTilesetInfo


Extends cc.Class.

Defined in: CCTMXXMLParser.js.

Class Summary
Constructor Attributes Constructor Name and Description
 

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.

Field Summary
Field Attributes Field Name and Description
 
First grid
 
Size in pixels of the image
 
Margin
 
Tileset name
 
Filename containing the tiles (should be sprite sheet / texture atlas)
 
Spacing
Method Summary
Method Attributes Method Name and Description
 
Class Detail
cc.TMXTilesetInfo()

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.

Field Detail
firstGid
First grid

imageSize
Size in pixels of the image

margin
Margin

name
Tileset name

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

spacing
Spacing
Method Detail
{cc.Rect} rectForGID(gid)
Parameters:
{Number} gid
Returns:
{cc.Rect}

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 09 2013 07:51:54 GMT-0800 (PST)