-
-
Notifications
You must be signed in to change notification settings - Fork 422
Implement isometric & hexagonal tilemaps #1213
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
Merged
OverloadedOrama
merged 63 commits into
Orama-Interactive:master
from
OverloadedOrama:isometric-tilemap
Apr 8, 2025
Merged
Implement isometric & hexagonal tilemaps #1213
OverloadedOrama
merged 63 commits into
Orama-Interactive:master
from
OverloadedOrama:isometric-tilemap
Apr 8, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57b6aea
to
fe4f753
Compare
783aa6b
to
9830fd9
Compare
Needed for overlapping isometric tiles
And pass the variables down from the layer to the cel
It is not working for isometric tilemaps at the moment. If we find a solution, we should re-enable it.
Needed for place-only tilemaps with overlapping pixels
Not perfect but should be better
…d the new selected tiles do not exist in the new tileset
Not currently supported in normal mode, as we need a mask for that first.
Needs UI now
d873eba
to
71ec795
Compare
Avoids issues such as replacing tiles, or changing their order
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Implements the ability to create isometric and hexagonal (both pointy-top and flat-top orientations) tilesets when creating a tilemap layer. They work the same way as rectangular tilemap layers, you draw on isometric/hexagonal grids and Pixelorama automatically creates/modifies tiles in the tileset.
Isometric tilemap:
2025-04-07.00-03-32.mp4
Hexagonal tilemaps with both orientations:
2025-04-08.18-06-19.mp4
Unfortunately, it is not possible to create tiles that are bigger than the cell size (by having pixels outside of their cell), since Pixelorama would have no way to tell which pixels belong to which tiles. In order to implement this, I introduced a new "place-only mode" to tilemap layers. By enabling this mode, you will only be able to place tiles and you won't be able to modify existing tiles anymore on that layer. Activating this is also permanent. However, you can still modify tiles in other tilemap layers that share the same tileset.
Isometric place-only tilemap with overlapping pixels:
2025-04-07.00-19-48.mp4
Resizing selected content is not yet supported in isometric and hexagonal tilemaps.
The bucket tool is also quite problematic, even on rectangular tilemaps before this PR, so I will try to fix it after this PR is merged.EDIT: Fixed in 1cc5a67.This PR also changes how resizing the project affects tilemaps and tilesets. Resizing the canvas or cropping it to content simply moves the offset of each tilemap layer while not affecting the tilesets, but scaling the project also scales the size of the tiles by the same amount that the project was scaled. For example, scaling a 64x64 project to 128x64 would scale 16x16 tiles to 32x16.
Fixes/improvements: