Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TileSprite

Tile sprites are used to render a specific sprite from a TileMap's spritesheet(s)

Hierarchy

  • TileSprite

Index

Constructors

Properties

Constructors

constructor

  • new TileSprite(spriteSheetKey: string, spriteId: number): TileSprite
  • Parameters

    • spriteSheetKey: string

      The key of the spritesheet to use

    • spriteId: number

      The index of the sprite in the SpriteSheet

    Returns TileSprite

Properties

spriteId

spriteId: number

The index of the sprite in the SpriteSheet

spriteSheetKey

spriteSheetKey: string

The key of the spritesheet to use