Tiles
Tile maps are a grouping of tiles containing a sprite; they are primarily represented by:
- TileMap: A structure for storing tiles and functionality for reading/modifying the map.
- Tile: A container for a sprite and other rendering information.
In Amethyst, the Tile
is a trait that must be implemented within you crate which is provided to the TileMap
and RenderTiles2D
. The pages in this section will explain how to add tile maps to your application.
Note: The code snippets in this section explain the parts of creating tile maps separately. For complete application examples, please refer to the tiles example in the examples directory.
Note: This section uses sprites and assumes knowledge of loading sprites and spritesheets.