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

Phaser 3.54 draw offset layer #5633

Closed
moJiXiang opened this issue Mar 30, 2021 · 3 comments
Closed

Phaser 3.54 draw offset layer #5633

moJiXiang opened this issue Mar 30, 2021 · 3 comments

Comments

@moJiXiang
Copy link
Contributor

moJiXiang commented Mar 30, 2021

Version

  • Phaser Version: 3.54.0
  • Operating system: Windows
  • Browser: Chrome

Description

TileWidth = 62, TileHeight = 31

White grid layer is the tilemap layer area.

Phaser 3.54 draw isometric map offset of tilemap layer position.

Example Test Code

image

@moJiXiang moJiXiang changed the title Use getTileAtWorldXY return wrong result Phaser 3.54 draw offset layer Mar 30, 2021
moJiXiang pushed a commit to moJiXiang/phaser that referenced this issue Apr 1, 2021
moJiXiang added a commit to moJiXiang/phaser that referenced this issue May 19, 2021
fix tilemap draw offset, maybe it is a bug, related issue phaserjs#5633
photonstorm added a commit that referenced this issue Sep 22, 2021
fix tilemap draw offset, maybe it is a bug, related issue #5633
@photonstorm
Copy link
Collaborator

Thanks for opening this issue, and for submitting a PR to fix it. We have merged your PR into the master branch and attributed the work to you in the Change Log. If you need to tweak the code for whatever reason please submit a new PR.

@danh121097
Copy link

Hi @moJiXiang, how to show correct the position of tilemap in Scene canvas?

@debone
Copy link

debone commented Oct 3, 2022

@danh121097 I think @photonstorm link to the change log is not yet updated because the change was merged to the to-be-released 3.60 branch. The change log for the latest 3.60 is https://github.com/photonstorm/phaser/releases/tag/v3.60.0-beta.10. You can try it out the beta release at npm i phaser@3.60.0-beta.10. When loading tilesets you will be able to use the tileoffset parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants