We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When setting game's resolution greater than 1, the checkBounds function of game camera doesn't work well. It will add more spaces at bottom and right of the game world. I found the code that makes this problem: https://github.com/photonstorm/phaser-ce/blob/c900c6765875b9d78796a0d6771fcaa22e394e2b/src/core/Camera.js#L724
checkBounds
https://github.com/photonstorm/phaser-ce/blob/c900c6765875b9d78796a0d6771fcaa22e394e2b/src/core/Camera.js#L747
That would be fixed if we change to:
this.view.x = (this.bounds.right * this.scale.x) - (this.width * this.game.resolution); this.view.y = (this.bounds.bottom * this.scale.y) - (this.height * this.game.resolution);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When setting game's resolution greater than 1, the
checkBounds
function of game camera doesn't work well. It will add more spaces at bottom and right of the game world.I found the code that makes this problem:
https://github.com/photonstorm/phaser-ce/blob/c900c6765875b9d78796a0d6771fcaa22e394e2b/src/core/Camera.js#L724
https://github.com/photonstorm/phaser-ce/blob/c900c6765875b9d78796a0d6771fcaa22e394e2b/src/core/Camera.js#L747
That would be fixed if we change to:
The text was updated successfully, but these errors were encountered: