Rendering primitive representing a uniform grid of tiles. Each tile is represented by an Image and a Swatch to use when rendering it, or a null Image for an empty tile.
More...
|
| | Tilemap (Vector2I tileSize, Vector2I dimensions) |
| | Construct a tilemap with the specified tile size and dimensions. More...
|
| |
| void | ClearTile (int col, int row) |
| | Clear the image at the specified column and row. More...
|
| |
| void | SetTile (int col, int row, Image image, SwatchIndex swatchIndex) |
| | Set the image and swatch index at the specified column and row. More...
|
| |
| void | SetTile (int col, int row, Image image, SwatchIndex swatchIndex, bool flipX, bool flipY) |
| | Set the image and swatch index at the specified column and row with flipping options. More...
|
| |
| void | SetTileSwatch (int col, int row, SwatchIndex swatchIndex) |
| |
| void | Render (Graphics graphics) |
| | Render to screen. More...
|
| |
Rendering primitive representing a uniform grid of tiles. Each tile is represented by an Image and a Swatch to use when rendering it, or a null Image for an empty tile.
Construct a tilemap with the specified tile size and dimensions.
- Parameters
-
| tileSize | The pixel size of each tile. |
| dimensions | The size in tiles of the tilemap (the number of tiles in each row, and the number of tiles in each column). |
| void GameAPI.BudgetBoy.Tilemap.ClearTile |
( |
int |
col, |
|
|
int |
row |
|
) |
| |
|
inline |
Clear the image at the specified column and row.
- Parameters
-
| col | The x-position of the tile to clear. |
| row | The y-position of the tile to clear. |
| void GameAPI.BudgetBoy.Tilemap.Render |
( |
Graphics |
graphics | ) |
|
|
inline |
| void GameAPI.BudgetBoy.Tilemap.SetTile |
( |
int |
col, |
|
|
int |
row, |
|
|
Image |
image, |
|
|
SwatchIndex |
swatchIndex |
|
) |
| |
|
inline |
Set the image and swatch index at the specified column and row.
- Parameters
-
| col | The x-position of the tile to clear. |
| row | The y-position of the tile to clear. |
| image | The Image to render for the tile. |
| swatchIndex | The SwatchIndex used to color the tile. |
| void GameAPI.BudgetBoy.Tilemap.SetTile |
( |
int |
col, |
|
|
int |
row, |
|
|
Image |
image, |
|
|
SwatchIndex |
swatchIndex, |
|
|
bool |
flipX, |
|
|
bool |
flipY |
|
) |
| |
|
inline |
Set the image and swatch index at the specified column and row with flipping options.
- Parameters
-
| col | The x-position of the tile to clear. |
| row | The y-position of the tile to clear. |
| image | The Image to render for the tile. |
| swatchIndex | The SwatchIndex used to color the tile. |
| flipX | Should the Image for this tile be flipped horizontally? |
| flipY | Should the Image for this tile be flipped vertically? |
| void GameAPI.BudgetBoy.Tilemap.SetTileSwatch |
( |
int |
col, |
|
|
int |
row, |
|
|
SwatchIndex |
swatchIndex |
|
) |
| |
|
inline |
| RectF GameAPI.BudgetBoy.Tilemap.Bounds |
|
get |
| int GameAPI.BudgetBoy.Tilemap.Columns |
|
get |
| Vector2I GameAPI.BudgetBoy.Tilemap.Dimensions |
|
get |
| int GameAPI.BudgetBoy.Tilemap.Height |
|
get |
Pixel height of the tilemap.
| Vector2I GameAPI.BudgetBoy.Tilemap.Position |
|
getset |
| int GameAPI.BudgetBoy.Tilemap.Rows |
|
get |
Pixel width and height of the tilemap.
| int GameAPI.BudgetBoy.Tilemap.TileHeight |
|
get |
| Vector2I GameAPI.BudgetBoy.Tilemap.TileSize |
|
get |
Width and Height of each tile.
| int GameAPI.BudgetBoy.Tilemap.TileWidth |
|
get |
| int GameAPI.BudgetBoy.Tilemap.Width |
|
get |
Pixel width of the tilemap.
| int GameAPI.BudgetBoy.Tilemap.X |
|
getset |
Local integer x-position.
| int GameAPI.BudgetBoy.Tilemap.Y |
|
getset |
Local integer y-position.