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

Isometric TiledMap integration 🗺 #72

Open
bitbrain opened this issue May 24, 2017 · 1 comment
Open

Isometric TiledMap integration 🗺 #72

bitbrain opened this issue May 24, 2017 · 1 comment

Comments

@bitbrain
Copy link
Owner

bitbrain commented May 24, 2017

As explained in https://github.com/libgdx/libgdx/wiki/Tile-maps we need Isometric tmx integration. braingdx already integrates with Orthogonal tiled maps.

The new renderer implementation

Instead of rendering every layer onto each other, we gonna create n textures, which are rendered per diagonal row. This also works for uneven sizes since we're extending the texture (in an extreme case) to a total width. The render x position is always the isometric position on the most-left tile:

rendering

NOTE: This renderer does not care about roofs etc for now. It simply backs a single texture per diagonal row!

This renderer furthermore re-uses textures if they're exactly the same. It calculates a string according to its contents to use it as a row-id. If a row would require the exact same texture, use the existing texture instead. Also this renderer creates for every row a new GameObject and sets it to inactive (so it doesn't get considered as an actual gameplay object`. Assign renderers for every game object.

NOTE: the texture backing must consider offsets as well. It should back textures according to contents on a cell including offsets!

@bitbrain bitbrain added this to the Version 1.0.0 (Initial Release) milestone May 24, 2017
@bitbrain bitbrain self-assigned this May 31, 2017
@bitbrain bitbrain added this to In Progress in Core May 31, 2017
@bitbrain
Copy link
Owner Author

bitbrain commented Jun 1, 2017

@gterminator this will be the new isometric TiledMap rendering we'll be using in future. It allows us to have proper rendering including z-indexing. 👍

@bitbrain bitbrain removed their assignment Aug 3, 2018
@bitbrain bitbrain modified the milestones: Version 1.0.0 (Initial Release), 0.6.0 - The TiledMap Update Mar 11, 2019
@bitbrain bitbrain changed the title Isometric TiledMap integration Isometric TiledMap integration 🗺 Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Core
  
In Progress
Development

No branches or pull requests

1 participant