Options
All
  • Public
  • Public/Protected
  • All
Menu

Class 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.

Hierarchy

  • TMXTilesetInfo

Index

Properties

_tileSize

_tileSize: Size = new Size(0, 0)

collection

collection: boolean = false

firstGid

firstGid: GID = 0 as any

First grid

property

{number} firstGid

imageName

imageName: string | null = null

imageSize

imageSize: Size = new Size(0, 0)

margin

margin: number = 0

Margin

property

{number} margin

name

name: string = ""

Tileset name

property

{string} name

Optional sourceImage

sourceImage: SpriteFrame

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

property

{cc.SpriteFrame} sourceImage

spacing

spacing: number = 0

Spacing

property

{number} spacing

tileOffset

tileOffset: Vec2 = new Vec2(0, 0)

Methods

rectForGID

Generated using TypeDoc