# Functions
From2DSlices creates a new map from the given 2D slice of tiles.
New creates a new map with the given width and height will all tiles set to the zero value of [Tile].
NewParseFunc creates a new parser that will parse exactly one map from the given byte slice.
NewStreamingParseFunc creates a new stream parser that will parse one or more maps from an original byte slice.
Rotate rotates the map in the given direction, which is one of [North], [East], [South] & [West], which is the equivalent of rotating the map 0, 90, 180 & 270 degrees
Any other direction will result in a panic.
Tilt tilts the map in the given direction so that the MovableTile will move in that direction until it hits another tile type which isn't an empty tile.
WithColourPalette sets the colour palette for the map
If not set, the map will compute the palette from the tiles by iterating from the zero value, until it gets false from a call to [Tile.Valid].
WithMaxTileSize sets the maximum tile size for the map when rendering.
WithMinTileSize sets the minimum tile size for the map when rendering.
WithTileRender sets the tile render function for the map
If not set, the map will render each tile fully in the colour of the tile.
# Type aliases
Direction represents a direction on a map.
MapOption represents an option that can be applied to a map.
Pos represents a position on the map with x, y coordinates.
TileRender sets the tile render function for the map.