New answers tagged

1

One approach to a multilayered map would be an array (or 2-dimensional array) of linked lists or vectors holding tile objects. So your tile struct would either hold a pointer to the next tile above it, or you would have "stacks" of tiles of varying heights spread across the grid. Essentially that creates a 3D array. A nice, albeit old article on ...


0

I researched a lot about this and found only 2 or 3 articles with outdated graphics. What I would suggest today to render a 2d game-map is to use textures and dominance-based approach, where each terrain-type defines its dominance value: more dominant tiles always overlap the less dominant ones and "blend" into them. Then instead of pre-rendering specific ...



Top 50 recent answers are included