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.Scale.RESIZE WebGL has weird scaling and positioning #6678

Closed
LazeKer opened this issue Nov 23, 2023 · 1 comment
Closed

Phaser.Scale.RESIZE WebGL has weird scaling and positioning #6678

LazeKer opened this issue Nov 23, 2023 · 1 comment

Comments

@LazeKer
Copy link

LazeKer commented Nov 23, 2023

Version

  • Phaser Version: 3.70.0
  • Operating system: Windows 11
  • Browser: Chrome 119.0.6045.160

Description

In RESIZE scale mode and WEBGL there is positionning/scaling issues while moving game objects and during the resize.
Could also be related, Shaders (ex: PostFX) are stretch weirdly (ex: Blur)

Example Test Code

It can easily be tested through the example: https://labs.phaser.io/100.html?src=src\scalemanager\manually%20resize.js
Load the page with the developper console open in responsive, configure the viewport very small (ex:10x10) then rezise up, the text should bump as if it was tring to snap on a grid. Every gameobject wil do the same while moving (ex: tween)

You can do the same on multiple example like : https://labs.phaser.io/edit.html?src=src\scalemanager\mobile%20game%20example.js

Additional Information

Could be related to #6674

@photonstorm
Copy link
Collaborator

This is now fixed in master. Please see #6674 for the related commits.

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

3 participants