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

Tilemap WEBGL rendering looks wrong when base size differs from tileset size #5988

Closed
samme opened this issue Jan 29, 2022 · 1 comment
Closed

Comments

@samme
Copy link
Contributor

samme commented Jan 29, 2022

Version

  • Phaser Version: 3.55.2, v3.60.0-beta.4

Description

var map = this.make.tilemap({ width: 200, height: 200, tileWidth: 32, tileHeight: 32 });
var tiles = map.addTilesetImage('walls_1x2', null, 32, 64);
// etc.

Canvas renderer

base tile size CANVAS

WebGL renderer

base tile size WEBGL

Example Test Code

Compare CANVAS and WEBGL renderers in https://labs.phaser.io/edit.html?src=src\tilemap\base%20tile%20size.js.

@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

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

2 participants