Skip to content

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

Open
adrien-bon wants to merge 1 commit into
StarArawn:mainfrom
adrien-bon:feat/chunk_render_order
Open

feat: add a new TilemapRenderSettings to control chunks RenderOrder#544
adrien-bon wants to merge 1 commit into
StarArawn:mainfrom
adrien-bon:feat/chunk_render_order

Conversation

@adrien-bon
Copy link
Copy Markdown
Contributor

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

@adrien-bon adrien-bon force-pushed the feat/chunk_render_order branch from 7cd0a7e to 1d77940 Compare July 23, 2024 19:31
@adrien-bon adrien-bon force-pushed the feat/chunk_render_order branch from 1d77940 to 1b4e653 Compare July 24, 2024 10:34
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