API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceTilemapOccluderOptions

@codexo/exojs-lighting / lighting / stable

Tuning for TilemapOccluder.

3
props
0
methods
0
events
Import
import { TilemapOccluderOptions } from '@codexo/exojs-lighting'

Tuning for TilemapOccluder.

Properties3
blockSize?: number
Side, in tiles, of the square block an outline is cached in. Larger blocks rebuild less often as the view moves and cost more per rebuild. Defaults to 16.
solid?: (tile: Tile, tx: number, ty: number) => boolean
Whether an occupied cell blocks light. Defaults to "every tile in this layer does", which is what a layer dedicated to walls wants; pass a predicate to read a tile property instead.
Source