Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Isometric tile maps #78

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Isometric tile maps #78

wants to merge 4 commits into from

Conversation

zacharycarter
Copy link

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...

  1. maputils - new class with methods for determining isometric world coordinates from tile cooordinates
  2. tilemap - added conditional check to determine orientation of tilemap - result determines what type of tilemap (orthogonal / isometric) will be instantiated

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

@englercj
Copy link
Member

Hey zach, been pretty busy lately and haven't had a second to look through this. Thanks again for all your hard work, and since isometric support is slated for v0.3 I should be looking at this again soon!

-Chad

@zacharycarter
Copy link
Author

Hey Chad,

Np I've been pretty busy myself but I'm excited to hear iso tilemap support will be coming to grapefruit soon! Please let me know when you plan to look over this stuff so I can answer any questions and help test the new version! I'd love to contribute more down the road if you have some stuff I can help with.

-Zach

@englercj
Copy link
Member

englercj commented Jan 2, 2014

@carterza Thanks man! Just check out the issue list, I post anything I plan to work on in the GitHub issues. Feel free to just grab something and run with it!

Make sure to check out the Contributing Guide as well!

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

Successfully merging this pull request may close these issues.

None yet

2 participants