fallahn/tmxlite

How hard would it be to adapt the library to render an isometric map?

Closed this issue · 2 comments

Wanting to render an isometric map, I see there is documentation for orthogonal, was wondering if I can use a generic method to render isometrically or something specific in the library that might help.

Thanks.

Hi! The library itself does no rendering - it just parses the tmx format into a set of C++ objects. What you do with them then is up to you 😁 While there are some rendering examples included in the repository I don't recall having ever rendered an isometric map myself, so I haven't provided any example for isometric maps.

A quick search reveals this post which has some useful information on handling tile coordinates in isometric maps: https://stackoverflow.com/questions/892811/drawing-isometric-game-worlds - you could adapt this by replacing the tile_map[][] array with data loaded from your tmx file. Hopefully that will get you started!

thanks