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

Feature: Add tile map layer support with support of the z-index property #261

Merged
merged 5 commits into from
Nov 11, 2021

Conversation

JumpLink
Copy link
Contributor

@JumpLink JumpLink commented Nov 9, 2021

This implementation creates layers for each raw tiled layer with zindex support as suggested in the discussion on #255.

This PR replaces #256

Copy link
Member

@eonarheim eonarheim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JumpLink This looks great! I have a couple requests before merge.

  • Delete unused line
  • Assign a default incrementing zindex to each tile layer, if the custom 'zindex' property override isn't present
  • Running locally a couple tests are failing, please update those tests so they pass
    • npm run test

image

src/tiled-map-resource.ts Outdated Show resolved Hide resolved
src/tiled-map-resource.ts Outdated Show resolved Hide resolved
@JumpLink
Copy link
Contributor Author

@eonarheim Okay I have

  • Auto increment zindex for layers
  • Fixed the existing tests
  • Add new tests to test the zindex on layers
  • Updated the example-city.tmx to add a new "above the hero" layer with zindex

Copy link
Member

@eonarheim eonarheim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JumpLink This is awesome! Thanks!

@eonarheim eonarheim merged commit b4c2c72 into excaliburjs:main Nov 11, 2021
@kamranayub
Copy link
Member

Wow @JumpLink you are awesome, thanks!

@JumpLink JumpLink deleted the feature/zindexlayer2 branch November 11, 2021 18:55
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.

3 participants