rroylance/phaser-ce-npm-webpack-typescript-starter-project

portrait support ?

Closed this issue · 6 comments

portrait support ?

Does the following work, orientation is a Phaser thing so it should be as easy as making a couple Phaser calls, I haven't tried portrait yet so I'm not 100% ? src/states/boot.ts#L34-L36

Oh ya... You're totally right. There's a few places that calculate and use width and height. I'll take a look into it and see what I can do. Thanks.

Any update on this? I've been trying to set up the game size with
npm run setupGameSize -- --width 1120 --height 1920 --aspect-ratio 1.71
This does not work. Shouldn't all calculations be based on the parameters provided, as opposed to having fixed values?

Not yet. Sorry. I've had no time lately to put towards this.

Also; just realized. 1120x1920 is an aspect ratio of 0.58, not 1.71. Maybe that's why you've been having some issues? @andiCR