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

Hexagonal map support #167

Merged
merged 16 commits into from
Sep 18, 2018
Merged

Hexagonal map support #167

merged 16 commits into from
Sep 18, 2018

Conversation

nightm4re94
Copy link
Member

@nightm4re94 nightm4re94 commented Aug 24, 2018

This branch includes a series of changes that generalize some tile mechanics to incorporate staggered tile grids (e.g. isometric) in the future.
The core mechanics have been adapted to support hexagonal .tmx maps created with tiled editor.

…rid()[x][y].

This is necessary because staggered MapOrientations don't have their tiles aligned linearly.

Rename Layer.getPosition() to Layer.getOffset().

Make both grid width and grid height adjustable in utiLITI.
Adjust grid rendering in utiLITI for rendering non-orthogonal grids.

Don't return tiles outside the map with MapUtilities.getTile() (will return [-1,-1] now).
@nightm4re94 nightm4re94 merged commit 43bd561 into master Sep 18, 2018
@nightm4re94 nightm4re94 deleted the HexagonalMapSupport branch November 2, 2018 08:31
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

Successfully merging this pull request may close these issues.

1 participant