Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Level

A level is made up of one or more Layer instances.

Each layer holds either bitmap image tiles, entities, or integer values in a grid.

Visit https://ldtk.io/docs/general/world/ for more information.

Hierarchy

  • Level

Index

Constructors

Properties

Accessors

Constructors

constructor

Properties

Readonly background

background: Background

Readonly layers

layers: readonly Layer[] = ...

An array layer instances.

This array is sorted in display order: the 1st layer is the top-most and the last is behind.

Private neighbours_

neighbours_: null | Neighbour[] = null

Readonly world

world: World

Accessors

id

  • get id(): string
  • Unique string identifier

    Returns string

neighbours

  • Get neighbouring levels

    This property is lazily loaded. The first time you access this, it fetches all neighbours and caches them.

    Returns Neighbour[]

pos

size

uid

  • get uid(): number
  • Unique Int identifier

    Returns number

Generated using TypeDoc