API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceTileRegion
@codexo/exojs-tilemap / tilemap / stable
A half-open tile-coordinate rectangle covering `[x, x + width)` × `[y, y + height)`. Used to scope buildTileCollisionGeometry to part of a layer - a streamed chunk, the tiles around the player, a hand-picked room - instead of always rebuilding the whole map.
4
props
0
methods
0
events
Import
import { TileRegion } from '@codexo/exojs-tilemap'A half-open tile-coordinate rectangle covering `[x, x + width)` × `[y, y + height)`.
Used to scope buildTileCollisionGeometry to part of a layer - a streamed chunk, the tiles around the player, a hand-picked room - instead of always rebuilding the whole map.
Properties4
height: numberHeight in tiles.
width: numberWidth in tiles.
x: numberLeftmost tile column (inclusive).
y: numberTopmost tile row (inclusive).
Source