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 Tile[][]

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

tileWidth int

width of each tile in pixels

tileHeight int

height of each tile in pixels

Meta