Type Alias Chunk

Chunk: {
    data: number[];
    height: number;
    width: number;
    x: number;
    y: number;
}

Chunk of tile data

Type declaration

  • data: number[]

    Array of tiles. ID 0 (zero) represents empty space.

  • height: number

    Chunk height (in tails)

  • width: number

    Chunk width (in tails)

  • x: number
  • y: number