-
-
Notifications
You must be signed in to change notification settings - Fork 899
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
feat: Add support for isometric staggered maps #1895
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff as always! Could you add an image to the PR description with an example of the outcome when using this?
53bd67f
to
59293a7
Compare
Converted to draft. |
Back on the hotplate! |
fixes flame-engine#1893 Also fixes improper scaling on hexagonal maps. Cleanup: use switch statement for size.
(next up: fixing Hex staggering and tests with new assets)
note: this only works for single-atlas tile maps due to current contraints in flame_tiled.
Second pass only needed for staggerY/X-Axis (even or odd)
3627755
to
805987e
Compare
Let me check on the test failure here. Now that the layer offset is in, I will update some of my tests to have layer diffs. |
- RenderableGroup needs to refreshCache and hadnleResize on its children.
@spydon : changes in this last pull request:
For 3: there's multiple refreshes at head, so the maps are being painted multiple times for a perf hit. Not any more! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The geometry math is over my head, but overall makes sense to me
Description
Adds support for Tiled's Isometric Staggered maps
Checklist
fix:
,feat:
,docs:
etc).docs
and added dartdoc comments with///
.examples
.Breaking Change
Related Issues
fixes #1893
similar to #1887 and #1882