OrthoMap.this

Construct an orthogonal tilemap from a rectangular (non-jagged) grid of tiles.

  1. this(Tile[][] tiles, int tileWidth, int tileHeight)
    struct OrthoMap(Tile)
    this
    (
    Tile[][] tiles
    ,,
    )
  2. this(RectGrid!(Tile[][]) grid, int tileWidth, int tileHeight)

Parameters

tiles
Type: Tile[][]

tiles arranged in **row major** order, indexed as tilesrowcol.

tileWidth
Type: int

width of each tile in pixels

tileHeight
Type: int

height of each tile in pixels

Meta