-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
Implement tilemap layers #1146
Merged
OverloadedOrama
merged 90 commits into
Orama-Interactive:master
from
OverloadedOrama:tilemap-layers
Dec 5, 2024
Merged
Implement tilemap layers #1146
OverloadedOrama
merged 90 commits into
Orama-Interactive:master
from
OverloadedOrama:tilemap-layers
Dec 5, 2024
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
OverloadedOrama
force-pushed
the
tilemap-layers
branch
from
December 2, 2024 17:52
2ebad31
to
f9bde9d
Compare
Code is a bit meh, needs to be written better.
Should work well now.
Still needs undo support
…tileset's settings
… size as the tile size
…leset and applied a layer effect to all cels of the layer work This now creates an issue when manual mode is used and we undo. Other cels don't get updated, even though they were changed by manual mode.
Can only delete tilesets that are not currently used by a tilemap layer
…cept bucket Also fixes issues with the draw tile mode with the pencil and eraser tools, such as leaving gaps if the mouse is moving fast, and support for spacing and fill inside tool options.
And rename _snap_to_grid_center() to _snap_to_rectangular_grid_center()
… tools Only rectangle selection for now, and resizing doesn't yet work
OverloadedOrama
force-pushed
the
tilemap-layers
branch
from
December 3, 2024 23:39
6a0ad2e
to
d579baf
Compare
Now all selection tools are supported. They can all move, but not yet resize.
Working with 2D arrays is a bit of a pain, but I managed. Needs testing.
2024-12-05.01-54-57.mp4Managed to make selection tools and resizing work with the draw tiles mode. I think the tilemap layer system is pretty feature complete now, I'll merge this PR so Nightly version users can test it and give feedback. |
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 a new type of layer, tilemap layers. Tilemap layers are a type of pixel layers that are divided by grid cells, where each cell is mapped to a tile in a tileset. Tilesets are stored in projects, and multiple tilemap layers can use the same tileset.
This is a huge new feature that I wanted to try to have ready for v1.1, and while I did do a lot of tests before opening this PR, more testing would be greatly appreciated. I plan on merging this PR as soon as possible to make it easier for more people to test it.
2024-11-30.12-51-59.mp4
Current features:
2024-11-30.21-12-17.mp4
Stuff that can be added later: