[Solved] Phaser 3 Game Scaling (Letterbox scale)

Hi everyone!

I’m new Phaser user, my game with Phaser 3 are almost done.

I need to add scaling on my game, so my game canvas will be resize/rescale to fit a browser screen/window (letterbox scale).

But i don’t know how to do this with Phaser 3, i already open an example on http://labs.phaser.io (scalemanager folder) but none of these sample are working that i expected.

Btw on edit mode, live preview are not working (all of template/sample).

So, how i do this?

Thanks

Update: i find easy method here and working for me https://stackoverflow.com/questions/50742927/how-to-scale-a-phaser-3-game-and-their-assets-to-it-works-in-smartphones-and-tab

The scale manager won’t be out till 3.16 ( sometime later this month). Those examples are using a development build.

This plugin works well and can tide you over.

3 Likes

Thanks, you save my time

1 Like

Hey @willis,
I believe you might also wanna check this https://www.emanueleferonato.com/how-to-scale…

1 Like