-
Notifications
You must be signed in to change notification settings - Fork 73
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
How to set aspect-ratio to 16:9 #22
Comments
When I set the width to 300 and height to 990, scale mode is user-scale, the game shows queer aspect-ratio |
300x990 is a very odd aspect ratio (3.33)... To set the game to 16:9 you'd do the following for example; As for the scale mode, it needs to be set to one of Phasers included scale modes ('USER_SCALE', 'SHOW_ALL', 'EXACT_FIT', 'NO_SCALE', or 'RESIZE') (user-scale is not valid, USER_SCALE is though) so to add a new scale mode to the previous; Does that help you? |
It's helps. |
Oh, my bad, 300x990 is browser window, not the game, game use 800X500, I forgot to tell in first time, sorry |
1: I can't set aspect-ratio to 16:9. I tried the val 16:9, 16/9, and I should not use 1.77777777..... I think.
2: After trying some times for problem 1, I can't set scale mode any more, it fix on USER-SCALE
The text was updated successfully, but these errors were encountered: