Chapter 6: The Foundation: Tile System

A Tile class is the key to creating tile-based games. It holds a map of tile types, a set of colliders, and textures for each type of tile.

  • textures: A set of textures that represent each type of tile.

  • tile_map: A 2D map of tile types, where each tile type corresponds to a texture.

  • colliders: A set of collision boundaries that correspond to each tile in the tile map.

Last updated