This repository has been archived by the owner on Dec 1, 2021. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Alright, changes abound that definitely need review :
IsoTileLayer:
a. added include for maputils which is a new class used for converting iso map coords to world coords
b. added logic for calcuating maxSizeX / maxSizeY which is the max number of tiles that will fit in a given dimension based on the largest tile width | height of all tile sets composing a given tile layer
c. heavily modified code in the render / moveTileSprite methods for isometric rendering. will probably need to add comments explaining calculations etc here...
I think that's pretty much it. I did this rather late so I'm kind of expecting that there will be issues. Not sure how you want to sanity check, but let me know and I will put together whatever you need. Code is rough and probably needs refactoring but hopefully it gets the iso rendering path headed in the right direction. Let me know your thoughts!
Thanks again!
-Zach