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

feat: add a new TilemapRenderSettings to control chunks RenderOrder #544

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adrien-bon
Copy link

Hi,

Added a new render_chunk_order parameter to the TilemapRenderSettings.
Basically, it aims to build upon the current y_sort parameter and give more control to the user.

Some things to note:

  • I re-used the RenderOrder enum and concept from https://github.com/443eb9/bevy_entitiles however the implementation is different
  • It's a pretty naive implementation using z_order offsets, but should work in most cases
  • By default we should have the same behaviour as right now. I did not want to remove the y_sort parameter , let me know if you want me to remove it or mark it as deprecated

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