Interface Block

Definition of a block that can appear in the map

Hierarchy

  • Block

Properties

backgroundDisabled?: boolean

True if we can't place this block in the background

blocks: boolean

True if this one blocks movement

blocksDiscovery: boolean

True if this one blocks the discovery process - leaves for instance don't

blocksDown: boolean

True if this would block you when you're falling downward.

blocksLight: boolean

True if this block prevents lights passing

ladder: boolean

True if this block act as a ladder

leaveBackground: boolean

True if this block leaves a copy of itself in the background layer when removed from the foreground, used for caves discovery

light?: boolean

Does this block light the area

needsGround: boolean

True if this block needs ground under it to exist - like flowers - automatically destroy if nothing there

portal?: ((portal) => void)

Type declaration

    • (portal): void
    • The portal information if this block is a portal

      Parameters

      Returns void

sprite: string

The id of the sprite to draw for the block

timer?: {
    callbackName: string;
    timer: number;
}

The timer object with the number of ticks it takes for the block's effect to happen and the callback that defines the effect

Type declaration

  • callbackName: string
  • timer: number

Generated using TypeDoc