Jazz2::Tiles::TileMapViewOptions struct

Options of how a tile map is shown.

The defaults show it as the game does. The level editor changes them to look at a level in other ways.

Public variables

ITileMapLayerOverride* LayerOverride
Draws images in place of the tiles of layers, not owned.
LayerPlacement Placement
How the layers are placed relative to the view.
Vector2i ReferenceViewSize
Size of the view the layers are placed by, see LayerPlacement::ReferenceView.
float FlatAmount
How far the layers are aligned with the sprite layer instead, from 0 to 1.
bool DrawSideBars
Whether black bars are drawn at the sides of a level narrower than the view.
bool PauseLayerMovement
Whether layers with an automatic speed stay where their offset puts them, instead of moving.

Variable documentation

float Jazz2::Tiles::TileMapViewOptions::FlatAmount

How far the layers are aligned with the sprite layer instead, from 0 to 1.

At 1 the tile (0, 0) of every layer is at the world position (0, 0), whatever its speed and offset, so each layer can be edited in the same grid as the sprite layer.