Options
All
  • Public
  • Public/Protected
  • All
Menu
classdesc

Creates a DuckEngine TileLayer

description

The TileLayer Class. Stores a 2D array that relates to a Tileset that is then used in a TileMap

since

1.0.0-beta

Hierarchy

  • TileLayer

Index

Constructors

constructor

  • Parameters

    • tileset: Tileset

      Tileset that the 2D array relates to

    • map: number[][]

      A 2D array of numbers that relates to the Tileset

    • game: Game

      Game instance

    • scene: Scene

      Scene instance

    • zIndex: number = 2
    • visible: boolean = true

    Returns TileLayer

Properties

game

game: Game
memberof

TileLayer

description

Game instance

since

2.0.0

map

map: number[][]
memberof

TileLayer

description

A 2D array of numbers that relates to Tiles on a Tileset

since

2.0.0

scene

scene: Scene
memberof

TileLayer

description

Scene instance

since

2.0.0

tileset

tileset: Tileset
memberof

TileLayer

description

Tileset to relate map info to

since

2.0.0

visible

visible: boolean
memberof

TileLayer

description

Determines if the TileLayer is visible or not

since

2.0.0

zIndex

zIndex: number
memberof

TileLayer

description

Used for depth sorting

since

2.0.0

Generated using TypeDoc