Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
SomeGuyDoinWork opened this issue Jul 10, 2023 · 2 comments
Closed

Comments

@SomeGuyDoinWork
Copy link

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.

@fallahn
Copy link
Owner

fallahn commented Jul 10, 2023

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!

@SomeGuyDoinWork
Copy link
Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants